Running a Cron Job
I am trying to run a php script from crontab:
# m h dom mon dow command
25 0 5 * * root php -f /var/www/optimum/check_macs.php
I want it to run every 5th day of the month at 12:25am. I ran a test changing the system's time and setting it to about 5 minutes prior but, when it comes time, the script doesnt run.
I edited the crontab by issuing crontab -e as root and it generated a crontab for root.
I almost forgot to mention that, when I run the script from the command line: php -f /var/www/optimum/check_macs.php it works.
Does anyone have an idea of why the script is not running?
Thanks in advanced.
Last edited by landysaccount; 02-04-2009 at 05:07 PM.