wget in cron vs wget from ssh
Posted by: smarty
Posted on: 2006-01-19 09:55:00
hey all:
so i have a cronjob that runs as
* 9 * * * wget -q http://path/to/rem24.php
and it worked in the past (sending email/txt msg reminders for an events calendar at http://www.latinosfortexas.com/events).
this morning it sent me 6 reminder for an event tomorrow!
so i go looking, and i noticed at my root level i have lots of 'rem24.php' and 'rem24.php.1' etc files. i assumed then that wget is DLing them to the crontab location at my root (i assume) from their lft.com/path location.
to test this, tho i ssh in via putty, and command-lined:
wget -q http://path/to/rem24.php
BUT I DIDNT get copies appearing at the root.
so i guess 2 questions:
1)does wget from cron act different than wget in ssh? (if not, any ideas on why the multiple copies of the pointed to file?)
2)is there anyone with direct experience on the best way to invoke php from crontab? wget or lynx -dump advocates?? or??
thanks!
mario