PDA

View Full Version : Trying to setup a cron job to automate mail collection/parsing


Zeeboot
10-10-2007, 08:35 PM
I am trying to create a crontab job in freebsd to automate the scheduling processes.

I saw:
Advanced: ping http://localhost/cerb4/index.php/cron with wget/lynx in an external cron/scheduled task

I am trying to get it to work but its not working to great using lynx. I have setup a crontab job:
3 * * * * lynx http://localhost/cerb4/index.php/cron && sleep 60 && exit

but unfortunately it is not working at all.
the cronjob appears to be working but its not doing what its supposed to.

Any suggestions?

Hildy
10-10-2007, 09:10 PM
Do you get any output when you run "lynx http://localhost/cerb4/index.php/cron" from the command line?

jstanden
10-13-2007, 09:24 PM
You want to be using lynx --source to ping a webpage.

lynx by itself is in interactive mode, which isn't very helpful from an automated cron.