Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding to the Query of Making the entry in crontab through script.



Timothy Luoma wrote:
> 0,15,30,45 * * * * /path/to/your/one/time/program

FYI, a shortcut for "every 15 minutes" is:

*/15 * * * * whatever

>From the man page:

     Step values can be used in conjunction with ranges.  Following a
     range with ``/<number>'' specifies skips of the number's value
     through the range.  For example, ``0-23/2'' can be used in the
     hours field to specify command execution every other hour (the
     alternative in the V7 standard is
     ``0,2,4,6,8,10,12,14,16,18,20,22'').  Steps are also permitted
     after an asterisk, so if you want to say ``every two hours'', just
     use ``*/2''.

-Sean

__
email@hidden
925-422-1648
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.