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.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Running A Browser With Cron, Running a Browser with Cron
rupreckt1553
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:

#!/bin/sh
/usr/X11R6/bin/mozilla http://www.somepage.com
exit

but cron complains

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

Any pointers?

Thanks!
Robert
Go to the top of the page
 
+Quote Post
Termina
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?

Try:

/usr/X11R6/bin/mozilla --display=:7 http://www.somepage.com

If that doesn't work, try:

su -u yourusername /usr/X11R6/bin/mozilla --display=:7 http://www.somepage.com


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


Its GNU/Linuxhelp.net
*******

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)

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post

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

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 03:01 AM