Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: bakedjake
I have a crontab entry that supposed to launch firefox browser but it does not work. Here is the cron:
45 14 * * 3 DISPLAY=localhost:0.0;/usr/lib/firefox/firefox
I get the following error:
(firefox-bin:27852): Gtk-WARNING **: cannot open display:
It still does not work after i do 'xhost localhost'.
export sets the variable for the rest of the session, specifying it at the start of the command means it only applies for that command. You probably only need it for that command so just replace the ; with a space.