0
Can you put a comment on the same line as a cron job?
Example:
* 19 * * * lnxuser rm /home/lnxusr/edi/logs/mcfg204_`date -d -8days +\%Y\%m\%d`.log #THIS IS TO WIPE A 204 LOG THAT IS OLDER THAN A WEEK
I tried it on a working crontab on an Ubuntu system and it stopped processing crobjobs. Nothing in /var/log/syslog showed any kind of status (only the last successful run). When I put the comment on a line of its own and restarted cron daemon, the issue was solved.
This works fine in bash scripts, so I was a bit shocked by this since I thought crontab was just a script itself.
1Well I wasn't sure & wanted to see if anyone else could give a reference confirming that it shouldn't be done or test it themselves – gregg – 2013-04-03T15:04:08.297