Cronjob Not running

klyxmaster

New member
Joined
Apr 9, 2014
Messages
3
My cron was running fine, and I was getting an email once a day.
now it's not

i have it set once a day with the following command:
/usr/local/bin/php /home/[my account name]/domains/[my domain name]/public_html/path/to/my/php/script.php

anyone know why this would have stopped?
does the lack of email indicate the cron is not running?
how do i fix this?
thanks in adnvaced

ps
I have had to get up everymoring and run it manually.
 
It could be getting an error and an email being sent back to the main accounts mail box, which in your case appears to be "my account name". I would look at the email there, unless of course you are running it with ">/dev/null 2>&1" appended to it which suppresses any and all output from the cron job so no emails would be sent at all. It is hard to say exactly without seeing the full crontab.
 
It could be getting an error and an email being sent back to the main accounts mail box, which in your case appears to be "my account name". I would look at the email there, unless of course you are running it with ">/dev/null 2>&1" appended to it which suppresses any and all output from the cron job so no emails would be sent at all. It is hard to say exactly without seeing the full crontab.

Hi
thank you for your response.

the information in brackets( [ ] ) above is just to hide personal information. however, with that said, nothing was changed. it just stopped working a few days ago. I know I my host there was some server/ip change, so not sure if that had anything to do with it. i'll post a ticket to them and see if they have an answer.
 
Other than making sure you can run it as the same user from the command line, I don't know any reason why it shouldn't run. :(

To answer your question about the email, generally cronjobs only send an email if there's any output.

Jeff
 
Back
Top