Ubuntu 16.04 does not seem to understand the special case of the dash (hyphen) character as first character of a crontab entry. Putting "-" as the first character of a crontab entry prevents cron from writing a syslog message about the cron command being executed on some Linux distros, such as SuSE:
crontab: question about a special case of the dash character in the time field spec
If I run crontab -e
and attempt to insert "-" as the first character in a crontab entry, I get:
crontab: installing new crontab
"/tmp/crontab.2Hf5FN/crontab":25: bad minute
errors in crontab file, can't install.
Ubuntu's "man 5 crontab" is silent about this special case.
Can anyone offer insight on how to tell cron that I do not want it to report instances of execution of a particular line in my crontab file?
sudo crontab -e
command? It says in the article that you can put "-", If the uid of the owner is 0 (root)/etc/rsyslog.d/50-default.conf
file. Change following line*.*;auth,authpriv.none -/var/log/syslog
to*.*;cron,auth,authpriv.none -/var/log/syslog
. And use crontab normally without "-"filter.conf
file with your own specific rule and stop it from reporting to syslog. Might want to read this.... unix.stackexchange.com/questions/100722/…