On Mon, 28 Jul 2008, Carlos E. R. wrote:
The Monday 2008-07-28 at 11:06 -0600, Boyd Lynn Gerber wrote:
mornings. That is when I finished the update/upgrade. I have tried to remove the cron.weekly on friday evening at 23:45, but the file is recreated but the weekly cronjob still runs on Monday morning at about 6:00 AM MDT. This really interfeers with work. I really need this task to be run Saturday Morning at 12:15 AM. I have 5 TB drives and 4 512 GB drives. It takes the task a long time to complete. How do I force the weekly job to run at the time I want?
Interesting question.
In "/var/spool/cron/lastrun/" I have:
- -rw-r--r-- 1 root root 0 Jul 26 22:15 cron.daily - -rw-r--r-- 1 root root 0 Jul 22 22:00 cron.monthly
the timestamps record the day the jobs last run. The weekly one I know that run this early morning, but there is no timestamp file. I don't understand why not :-?
This is what I have
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
But ps -ef gives me...
root 30653 1 0 01:00 ? 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 01:00 ? 00:00:00 /bin/sh
/usr/lib/secchk/security-control.sh weekly
root 30709 30692 0 01:00 ? 00:00:00 /bin/sh
/usr/lib/secchk/security-control.sh weekly
root 30710 30709 0 01:00 ? 00:00:00 /bin/sh
/usr/lib/secchk/security-weekly.sh
root 10890 30710 0 18:15 ? 00:00:00 /bin/sh
/usr/lib/secchk/security-weekly.sh
root 10891 10890 1 18:15 ? 00:02:56 find /dev/ / /MNT0 /MNT1
/MNT2 /home /master /working /suse104main /suse104mainbak /zenezdomain
/xenau105 -mount ( -perm -30 -o -perm -3 ) -type f
root 10892 10890 0 18:15 ? 00:00:00 sort
root 10893 10890 0 18:15 ? 00:00:00 xargs ls -cdl
--time-style=long-iso --no_run-if-empty --
Which shows that it is running today. It started around 1:00 AM from the
above, but the system became sluggish around 6:00 AM.
--
Boyd Gerber