I have the shell script which opens Firefox and launches macros in it (I use a Firefox add-on called Imacros to create macros). The content of my shell script named house.sh
is like that:
firefox imacros://run/?m=house.iim
And I created a scheduled job via crontab -e
to run that script hourly every day:
47 * * * * /home/meerim/bin/house.sh
But nothing happened (Firefox didn't open). Then I tried this:
47 * * * * env DISPLAY=:0.0 /home/meerim/bin/house.sh
But it didn't solve the problem.
So how should I fix it?
My house.sh
script works properly when I run it from terminal.
xhost +
at all, that was to make sure you could connect and were not restricted by X. After logging out and back in this will reset to normal values (or runxhost -
) – Anthon May 31 '16 at 15:22xhost +
. – Gilles 'SO- stop being evil' May 31 '16 at 21:23chmod +x
on the new script? – Anthon Jun 01 '16 at 13:00