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