Hi I have made a Cron File in /etc/cron.d/aef.cron
The /etc/cron.d/aef.cron file has the following lines:
1 8 * * * root /usr/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/aef/cron.php >> /dev/null 2>&1
(There is a line break at the end of the file)
Now on some servers it gives an error of Ambigous Redirect!
The logs show :
Jun 15 16:19:01 host crond[26393]: (root) CMD (/usr/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/aef/cron.php >> /dev/null 2>&1^M)
Someone told me that the "^M" at the very end indicates that the cron job is
broken. As such, it is actually /not/ being run as expected.
Can you please help me with this.
I was considering that I could change the CODE to:
MAILTO=""
1 8 * * * root /usr/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/aef/cron.php
(There is a line break at the end of the file)
Will this have the same effect of not emailing STDERR, STDOUT to the ADMIN
Regards,
Pulkit