[PLUG] Running Browser From Cron?

Ali Corbin ali.corbin at gmail.com
Sat Sep 3 21:07:21 UTC 2005


On 9/2/05, Robert McIntosh <mcintoshrt at gmail.com> wrote:
> I'm trying to get a cron job to load a browser page as a user multiple
> times and then close.  Those of you with devious minds see what I'm
> getting at.
> 
> I would use lynx or wget, but I need a browser with javascript to load
> the page.  Odd request, I know.
> 
> I'm working with:
> 
> #!/bin/sh
> /usr/X11R6/bin/mozilla --display :0 http://www.somewebsite.com
> exit
> 
> and cron whines at me:
> 
> (mozilla-bin:2725): Gtk-WARNING **: cannot open display: :0
> 
> Please provide hints or blatant help.
> 

I believe that links, AKA elinks, is capable of running javascript.
Ali



More information about the PLUG mailing list