On Ubuntu, cron log can be seen in /var/log/cron. In Debian, cron log is by default part of syslog.
To enable a seperate cron log, do the following:
#grep -in cron /etc/rsyslog.conf 58:#cron.* /var/log/cron.log 88: cron,daemon.none;\
Now, edit that line (line num 58 in this example), and remove the comment symbol in front of cron.*
Now restart rsyslog service:
#service rsyslog restart Stopping enhanced syslogd: rsyslogd. Starting enhanced syslogd: rsyslogd.
Note: If you can’t find /etc/rsyslog.conf, you will need to install rsyslog:
#apt-get install rsyslog -y
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.