cron not logging
Hey!
This question has been asked before, and I have seen it on Google, but nothing seems to be helping.
I have ensured that I have the CRONLOG = YES is in the /etc/crontab file.
I have tried putting:
# Log cron stuff
#cron.* /var/log/cron
in my /etc/syslog-ng/syslog-ng.conf file, however, I get a parse error when I try to restart syslog-ng and it fails to start.
here is the entry (which I'm testing atm) from my /etc/crontab
14 14 * * * root cp /root/rsync1/* /root/rsync2/ 2>&1 > /var/log/cron/m00.log
It creates that /var/log/cron/m00.log file fine, but nothing is ever in the log file. I don't know what a cron log file will look like, but I imaging that it will have all sorts of information about what was moved and who owns the job. Nothing is in the log file, despite the fact that it is created.
Also, what is the " 2>&1 > " bit in the crontab line? I copied it from somewhere because I thought that was how to enable logging.
can someone please suggest something for me!
Thanks
Hamish
|