Re: Problem with cron

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



Am 23.02.2014 um 15:22 schrieb Stephen Harris <lists@xxxxxxxxxx>:
> On Sun, Feb 23, 2014 at 08:20:06AM -0600, Joseph Hesse wrote:
>> I have a root cron job that powers down my server every day at 1am and 
>> 6pm.  The output of '# crontab -l' is shown below.
>> 
>> * 1,18 * * * poweroff
> 
> Nope.  That says "every minute of hours 1 and 18".  So 0100, 0101, 0102, 0103
> etc etc
> 
> You want it to read "0 1,18 * * * poweroff"
> 
>> Apparently a cron job that executed correctly at 6pm was executing 
>> minutes past 6pm when the server was restarted. This is totally 
>> unexpected behavior.
> 
> Totally expected.
> 
>> Is there a fix for this behavior?
> 
> Yes, user error; fix the cron job.



$ man 5 crontab

--
LF


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux