Cron Sandbox
Jan. 1st, 2010 01:48 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
cron is a time based job scheduler in *nix systems that lets you run a given command at specified times. I just had to compose a chron entry, and found this Cron Sandbox that lets me enter in the values I'm trying to use for specifying the times to run the command (every fifteen minutes turned out to be
0,15,30,45 * * * *). It was really helpful, because I'm not very experienced with cron as I've only had to ever use it a couple of times. Once you set it up, it just keeps chugging along without needing much maintenance!
no subject
Date: 2010-01-02 12:35 am (UTC)*/15 * * * *
But there's a catch to the above - it doesn't actually mean "every 15 minutes", but it means "Each minute that can be divided by 15, but including 0". In other words, it expands to
0,15,30,45 * * * *
.It also means that
*/25 * * * *
expands into0,25,50 * * * *
. You'll notice that this would mean that the cron job will get executed at, for example, 10:00, 10:25, 10:50, 11:00, 11:25... instead of every 25 minutes as you'd expect. (There are only 10 minutes between 10:50 and 11:00.)This comment has been brought to you by Painful Experience, Inc.
no subject
Date: 2010-01-02 05:17 am (UTC)no subject
Date: 2010-01-02 07:43 pm (UTC)no subject
Date: 2010-04-04 10:15 am (UTC)