homepage Welcome to WebmasterWorld Guest from 54.166.105.24
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
(firefox-bin:): Gtk-WARNING **: cannot open display:
launching firefox with crontab
rus3439

10+ Year Member



 
Msg#: 3623077 posted 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'.

Ideas?

thanks,
tatarin

 

physics

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3623077 posted 10:38 pm on Apr 9, 2008 (gmt 0)

Not sure but try
export DISPLAY=localhost:0.0;/usr/lib/firefox/firefox

mikedee

5+ Year Member



 
Msg#: 3623077 posted 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved