how to check logs of cron job code example Example: linux check cronjob log grep CRON /var/log/syslog