Forum Moderators: bakedjake

Message Too Old, No Replies

cron and lynx -dump *.php not working

         

jamie

5:47 am on May 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi

i have a simple php file which sends me a test mail

from the command line this works perfectly:

lynx -dump [mydomain.com...]

however when i add it to cron, to send me a mail every 5 minutes, or even at a specific time

53 * * * * lynx -dump [mydomain.com...]
*/5 * * * * lynx -dump [mydomain.com...]

i never receive a mail. so they are not working?

i am sure it is something simple.

thanks for help

bakedjake

4:57 pm on May 21, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



May be a path issue - put the full path to lynx in the cron job and see if that helps.

jamie

11:32 am on May 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi bakedjake,

i tried but to no avail... :-(

cron is working normally otherwise, i run several tasks from it, it is just lynx which is not working.

cheers

bakedjake

2:48 am on May 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Set your crontab up to send an email when it runs:

MAILTO="email@domain.com"

... and see if it's generating any output.