check crontab log for past 2 days code example Example: linux check cronjob log grep CRON /var/log/syslog