Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe to WebmasterWorld
(firefox-bin:): Gtk-WARNING **: cannot open display: launching firefox with crontab rus3439 msg:3623079 9:47 pm on Apr 9, 2008 (gmt 0) Hi,
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'.
physics msg:3623129 10:38 pm on Apr 9, 2008 (gmt 0)
Not sure but try export DISPLAY=localhost:0.0;/usr/lib/firefox/firefox mikedee msg:3623498 11:32 am on Apr 10, 2008 (gmt 0)
Or just remove the stray ; before the firefox command.
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.