On Tue, 29 Jul 2008, Carlos E. R. wrote:
The Monday 2008-07-28 at 22:25 -0600, Boyd Lynn Gerber wrote:
ssh suse104 ls -la /var/spool/cron/lastrun/ total 8 drwxr-xr-x 2 root root 4096 Jul 28 21:15 . drwx------ 4 root root 4096 Jun 6 16:29 .. -rw-r--r-- 1 root root 0 Jul 28 00:00 cron.daily -rw-r--r-- 1 root root 0 Jul 28 21:00 cron.hourly -rw-r--r-- 1 root root 0 Jun 28 17:45 cron.monthly -rw-r--r-- 1 root root 0 Jul 26 00:15 cron.weekly
So last time it run was last Saturday. The file is created just before the script runs. And after it runs, I see the script deletes the file if it is dated in the future.
But it really did not run till Monday. root 30653 1 0 Jul28 ? 00:00:00 /bin/sh -c test -x /usr/lib/secchk/security-control.sh && /usr/lib/secchk/security-control.sh weekly & root 30692 30653 0 Jul28 ? 00:00:00 /bin/sh /usr/lib/secchk/security-control.sh weekly root 30709 30692 0 Jul28 ? 00:00:00 /bin/sh /usr/lib/secchk/security-control.sh weekly root 30710 30709 0 Jul28 ? 00:00:00 /bin/sh /usr/lib/secchk/security-weekly.sh and
I like using "ps afx | less -S", because it would identify the children.
30653 ? S 0:00 /bin/sh -c test -x /usr/lib/secchk/security-control. 30692 ? S 0:00 \_ /bin/sh /usr/lib/secchk/security-control.sh weekl 30709 ? S 0:00 \_ /bin/sh /usr/lib/secchk/security-control.sh w 30710 ? S 0:00 \_ /bin/sh /usr/lib/secchk/security-weekly.s 28329 ? S 0:00 \_ /bin/sh /usr/lib/secchk/security-week 28330 ? DN 5:52 \_ find /dev/ / /MNT0 /MNT1 /MNT2 /h 28331 ? S 0:00 \_ sort
There is an entry in the messages log file that should tell you the exact time it started; try: grep weekly /var/log/messages | less -S
Jul 28 01:00:01 suse104 /usr/sbin/cron[30649]: (root) CMD ( test -x /usr/lib/sec Same as above. It started on Monday.
My guess is that yours takes a long time to execute. You will not have "john" installed? It does a weekly test for weak passwords, and it may takes days to complete.
It does. It is still running as shown above. That is why I really need
it to run on Saturday. I have not made an entry in the root crontab to
try and force it to run on Saturdays. This really is strange.
Thanks,
--
Boyd Gerber