cron jobs issue...

zimu

Diamond Member
Jun 15, 2001
6,209
0
0
have recently switched servers,

Had a cron tab on the old one that had
"php /home/--account--/public_html/---.php > /dev/null"

run every 24 hours. used to work great.

however, same script on the new server throws the error:

/bin/sh: php: command not found

in the cron log.

i tried using a wget command instead, wget http://www.---domain--.com/--phpfile--.php >/dev/null, but then it saves the php file locally instead of just "nulling" it, and eveyr time the script runs i get a new copy of the file... i.e. phpfile.php, phpfile.php.01, phpfile.php.02 etc etc.

any of you have any ideas for me?
 

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
Do a `which php` and find out the path, than use /path/php <command>

You could also call it with lynx