LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not seeing cronjob listed in log (https://www.linuxquestions.org/questions/linux-newbie-8/not-seeing-cronjob-listed-in-log-4175607143/)

sniper8752 06-01-2017 08:37 PM

Not seeing cronjob listed in log
 
I have the following cronjob (sudo crontab -l to produce this):

Code:

22 04 * * * /usr/local/bin/pulledpork.pl -c /etc/snort/pulledpork.conf -l
Here is what is in my /var/log/syslog when I grep CRON:

Code:

Jun  1 18:58:42 ubuntu-server cron[984]: (CRON) INFO (pidfile fd = 3)
Jun  1 18:58:42 ubuntu-server cron[984]: (CRON) INFO (Running @reboot jobs)
Jun  1 19:09:01 ubuntu-server CRON[9950]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun  1 19:17:01 ubuntu-server CRON[10121]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Jun  1 19:39:01 ubuntu-server CRON[10447]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun  1 20:09:01 ubuntu-server CRON[10602]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun  1 20:17:01 ubuntu-server CRON[10719]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Jun  1 20:39:01 ubuntu-server CRON[10768]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun  1 21:09:01 ubuntu-server CRON[11081]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun  1 21:17:01 ubuntu-server CRON[11270]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)


michaelk 06-01-2017 09:10 PM

This is one of those RTFM moments but it should be obvious

http://alvinalexander.com/linux/man/...-format-syntax


All times are GMT -5. The time now is 04:20 PM.