This question already has an answer here:
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:
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?
house.sh script works properly when I run it from terminal.