I have a CentOS 6 machine I am trying to run some cronjobs on and the jobs are failing complaining about a carriage return (^M) on the end of the line. Example /var/log/cron entry:
CROND[20344]: (root) CMD (/usr/local/bin/php /usr/local/bin/somescript.php >/dev/null 2>&1^M)
CROND[20213]: (root) CMD (/usr/local/bin/php /usr/local/bin/somescript.php^M)
All this works fine on CentOS 5.x, so looks like it's a CentOS 6 thing. Any suggestions?