Re: Crontab Strangeness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2003-12-30 at 09:07, salvatore wrote:
> Last night I created a crontab entry to check yum for available updates, and
> instead of it running once at the given time, it ran once a minute for an
> hour.
> Here's the entry:
> 
> * 5 * * * yum check-update > /home/salvatore/yum.log; mail -s "yum
> check-update results" salvatore@xxxxxxxxxxxxxxxx < /home/salvatore/yum.log
> 
> I thought the 5 in the second position meant to run once at 5am?  I have
> other similar crontab entries which run as expected once an hour; what's
> wrong with that one?

The 5 in the 2nd column does indeed mean 5am, but the * in your 1st
column tells it to run every minute.  If you want it to run at 5am, put
a zero in the 1st column, which tells it to only run at the 0 minute
(5:00).


-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux