PDA

View Full Version : Trying to run PHP script from cron job



brendanb
08-09-2009, 05:34 PM
hi,

what am i doing wrong here.
I have setup a cron job and can see the cron job is running, but its not executing

I have tried to run the same scrip from a ssh prompt and it works just fine.


php -q -f /home/devget/domains/devgetstuff.com.au/public_html/loadavg/logger.php >/dev/null 2>&1

R1Lover
08-09-2009, 06:12 PM
check your error and/or cron log to see why.

scsi
08-11-2009, 07:40 AM
You need the full path to php command.

brendanb
08-11-2009, 07:42 AM
hey,

thanks for your reply.

i have tried that but no luck. ill give it another go an see how it goes.

ta