i have create cron job but it didn't work it didn't send me any email i test the code alone and i receive an email but when i want to receive from cron job nothing receive it
that is the command usr/local/bin/php -q /home/mhmd2991/public_html/testcron.php
Minutes Hours Day Month Weekday
1 * * * *
How can i solve this problem ?!
Solved! Go to Solution.
The cron daemon feature continues to work correctly, however it has just started emailing successful execution results (filling my inbox really quickly).
This is the cron command. I have redacted the hostname and uuid with <masked>
--2017-03-29 00:15:04-- http://<masked>.org.au/wp-cron.php?<masked>&action=wysija_cron&process=all
Resolving <masked>.org.au... xxx.xxx.xxx.xxx
Connecting to <masked>.org.au|xxx.xxx.xxx.xxx|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/dev/null'
2017-03-29 00:15:06 (21.8 MB/s) - `/dev/null' saved 
Executing the wget command manually and then executing echo $? return 0. Which means it is working correctly.
The cron daemon manager indicates "We send Cron job error reports to this email address."
Why am I now receiving emails for a successful cron job execution? I have made no changes and I have just started receiving this noise. I cannot tell if there is an error now without filters.
I had cron jobs in my Linux hosting set up by someone else that were working fine and have now stopped for some reason without any changes being made. I have no ide what might have happened, any ideas?
Hi Matt13 - Yes, I had the same thing happen today. Cron was successfully running 3 days ago and then abruptly stopped. I called GoDaddy support, and while on the phone everything mysteriously started working once more without any reason as to why this occurred.
bluedogtech : Try exit 0; instead of return 0;
I have had zero luck in getting the Cron Job Manager to successfully install a crontab. I can see the crontab using /usr/bin/crontab -l. However, it fails to execute, because of the quotes on the MAILTO= statement. You cannot prevent the Cron Job Manager from doing this. Even removing the email address it will use MAILTO="" This causes the failure to execute the crontab.
You can use an ssh shell and use /usr/bin/crontab <path to crontab> to successfully install a crontab. When using MAILTO=, DO NOT use quotes around the email address you provide. Also, if you use $HOME in the script path, define your absolute home path using HOME=<path> again no quotes.
for example the file mycrontab contains
HOME=<your absolute path to home>
00 * * * * "$HOME/html/private_data/test.sh"
15 * * * * /web/cgi-bin/php5 "$HOME/html/private_data/testcron.php"
to install mycrontab use /usr/bin/crontab <path>/mycrontab
once installed, you can check it by using /usr/bin/crontab -l
and edit it by using /usr/bin/crontab -e
and remove it by using /usr/bin/crontab -r