Re: Confusion about scheduling tasks with crontab

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



At Sun, 18 Oct 2009 18:15:06 -0400 CentOS mailing list <centos@xxxxxxxxxx> wrote:

> 
> On 10/18/2009 11:13 AM Alan McKay wrote:
> >> how would I go about that? The thing is: I'd like to know an orthodox
> >> way to go about this.
> > 
> > crontab -e
> > 
> > and then just put in your entry
> > 
> > * 7 * * * /your/command
> 
> I think you meant:
> 
> 0 7 * * * /your/command
> 
> The asterisk will make the command run every minute during the seven
> o'clock hour.  The OP wanted his script to run at 7:00
> 
> Yes?

No.  The first field is the minutes (0), the second field is hours (7),
then comes 'day of month' (*), month (*), 'day of week' (*).  The script
will run at 7:00AM, every day of every month on every day of the week
(well the last is redundent...).

man 5 crontab

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

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller@xxxxxxxxxxxx       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                         
_______________________________________________
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