PDA

View Full Version : Cron job help.


Citizen
02-09-2006, 04:57 PM
I'm using cpanel's cron job section and I need to have it run a file once every hour.

Assuming the location of my file is /home/user/public_html/ads/maintenance/maintenance.php, what do I need to input for my command line?

http://img147.imageshack.us/img147/1061/untitled29zu.gif

Thanks,
-Citizen

Marco van Herwaarden
02-09-2006, 05:56 PM
The full path to the command you want to run. If it doesnt work try prefixing with '/usr/sh ' or '/usr/sh -c '

Put the full path to the needed shell command processor instead of /usr/sh

blackpheonix
02-09-2006, 06:55 PM
if that fails ^^
i use this seems to work for me prefix with

curl -s -o /dev/null http://blahblahblah

Citizen
02-10-2006, 02:32 PM
if that fails ^^
i use this seems to work for me prefix with

curl -s -o /dev/null http://blahblahblah
Thanks! This one did it for me. I can't express how troubling this has been with my adserver being mostly down due to the lack of the maintenance script running.

Thanks again!