Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Running A Browser With Cron, Running a Browser with Cron
post Sep 2 2005, 07:01 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 2-September 05
Member No.: 5,476

I'm trying to create a cronjob that will launch a browser, load a page, and then close it. I'm working with:


but cron complains

(mozilla-bin:2035): Gtk-WARNING **: cannot open display:

Any pointers?

Go to the top of the page
+Quote Post
post Sep 2 2005, 07:34 PM
Post #2

RMS is my Hero

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404

What display is X running in?


/usr/X11R6/bin/mozilla --display=:7

If that doesn't work, try:

su -u yourusername /usr/X11R6/bin/mozilla --display=:7

*Points finger at the author above him* They're a witch! Burn them!
Vist my website!
Join me in IRC! Server: Channel: #UnhandledExceptions
Go to the top of the page
+Quote Post
post Sep 3 2005, 12:01 PM
Post #3

Its GNU/

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165

If you dont need to be able to see the borwser, then you might be able to use lynx instead (since it doesnt need X to be installed/running)


Fixed your problem? Let us know! Online Event Management
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 22nd June 2018 - 06:13 PM