I need to load a page once per hour and execute the javascript on that page. I currently load the page manually with Firefox, but I would like to automate this by running a cron job on the server, which is Ubuntu Server 8.04 LTS.
Some web searching suggests that the best thing would be to run firefox -remote openurl(...)
and let gecko run the javascript, but this requires X11 which I don't know how to simulate on a server install.
So essentially I want an hourly job to run firefox
in a simulated environment and discard the output. (I'm not wed to firefox
... I'd happily take a wget
-like command that executes javascript.)