mjfroggy
August 27th, 2009, 08:18 PM
Hello all,
I have a php based script for my website. The file is in var/www/cronjobs My issue is the cron job is not working.
here is what I did
1) in the php script file I put the following on the top line
#!/usr/bin/php
Should the above be inside a <?php tag ??
next in ssh I did
sudo chmod +x correctiveactions.php
next I did
crontab -e
using nano the file that opened I have the below
#m h dom mon dow command
10 03 * * * /var/www/cronjobs/correctiveactions.php
so the above should run every day of every month at 3:10 however 3:10 came andwent and it did not run??
any suggestions on what I missed?
Thanks
I have a php based script for my website. The file is in var/www/cronjobs My issue is the cron job is not working.
here is what I did
1) in the php script file I put the following on the top line
#!/usr/bin/php
Should the above be inside a <?php tag ??
next in ssh I did
sudo chmod +x correctiveactions.php
next I did
crontab -e
using nano the file that opened I have the below
#m h dom mon dow command
10 03 * * * /var/www/cronjobs/correctiveactions.php
so the above should run every day of every month at 3:10 however 3:10 came andwent and it did not run??
any suggestions on what I missed?
Thanks