Cronjob bi-Monthly Setup
Hi,
This is* my crontab Reference: * #Crontab Reference #****** ***** ***** *** **** ******** command to be executed #****** -**** -**** -** -*** - #****** |**** |**** |** |*** | #****** |**** |**** |** |*** +----- day of week (0 - 6) (Sunday=0) #****** |**** |**** |** +------- month (1 - 12) #****** |**** |**** +--------- day of******* month (1 - 31) #****** |**** +----------- hour (0 - 23) #****** +------------- min (0 - 59) * * What would be the entry of a bi-monthly entry? (every 2 weeks)** Doing it in hours is not very elegant. Should I Gio like this? * 0 10 1,15 * *** /etc/scripts/my_script? * Thanks. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Cronjob bi-Monthly Setup
On Thu, Dec 2, 2010 at 3:14 PM, Maxime Alarie <malarie@processia.com> wrote:
> Hi, > > This is* my crontab Reference: > > > > #Crontab Reference > > #****** ***** ***** *** **** ******** command to be executed > > #****** -**** -**** -** -*** - > > #****** |**** |**** |** |*** | > > #****** |**** |**** |** |*** +----- day of week (0 - 6) (Sunday=0) > > #****** |**** |**** |** +------- month (1 - 12) > > #****** |**** |**** +--------- day of******* month (1 - 31) > > #****** |**** +----------- hour (0 - 23) > > #****** +------------- min (0 - 59) > > > > > > What would be the entry of a bi-monthly entry? (every 2 weeks)** Doing it in > hours is not very elegant. Should I Gio like this? > > > > 0 10 1,15 * *** /etc/scripts/my_script? > > > > Thanks. That should work fine and is probably the easiest way to do it. Preston -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Cronjob bi-Monthly Setup
On Thu, Dec 2, 2010 at 2:14 PM, Maxime Alarie <malarie@processia.com> wrote:
Hi, This is* my crontab Reference: * #Crontab Reference #****** ***** ***** *** **** ******** command to be executed #****** -**** -**** -** -*** - #****** |**** |**** |** |*** | #****** |**** |**** |** |*** +----- day of week (0 - 6) (Sunday=0) #****** |**** |**** |** +------- month (1 - 12) #****** |**** |**** +--------- day of******* month (1 - 31) #****** |**** +----------- hour (0 - 23) #****** +------------- min (0 - 59) * * What would be the entry of a bi-monthly entry? (every 2 weeks)** Doing it in hours is not very elegant. Should I Gio like this? * 0 10 1,15 * *** /etc/scripts/my_script? * Thanks. bi weekly would be every two weeks, usually 26 times a year, sometime you get 27 depending on the quirks of the calendar. *Can't do it with a cron job. *Would have to write a script to submit the jobs individually using at. *Would be messy. the above is semi monthly you get 24 runs a year. bi monthly gets you 6 a year, every two months. *Not even close to what you want. If the 1st and 15th of the month is "close enough" go with that. *If you have to satisfy a non negotiable bureaucratic requirement after you find out some more of the fine print you might have to write the messy script. *-- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users -- Drew Einhorn "You can see a lot by just looking." * --* Yogi Berra -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Cronjob bi-Monthly Setup
From:
ubuntu-users-bounces@lists.ubuntu.com [mailto:ubuntu-users-bounces@lists.ubuntu.com] On Behalf Of drew einhorn Sent: 02 December 2010 16:30 To: Ubuntu user technical support,not for general discussions Subject: Re: Cronjob bi-Monthly Setup Â* Â* On Thu, Dec 2, 2010 at 2:14 PM, Maxime Alarie <malarie@processia.com> wrote: Hi, This isÂ* my crontab Reference: Â* #Crontab Reference #Â*Â*Â*Â*Â*Â* *Â*Â*Â*Â* *Â*Â*Â*Â* *Â*Â* *Â*Â*Â* *Â*Â*Â*Â*Â*Â*Â* command to be executed #Â*Â*Â*Â*Â*Â* -Â*Â*Â*Â* -Â*Â*Â*Â* -Â*Â* -Â*Â*Â* - #Â*Â*Â*Â*Â*Â* |Â*Â*Â*Â* |Â*Â*Â*Â* |Â*Â* |Â*Â*Â* | #Â*Â*Â*Â*Â*Â* |Â*Â*Â*Â* |Â*Â*Â*Â* |Â*Â* |Â*Â*Â* +----- day of week (0 - 6) (Sunday=0) #Â*Â*Â*Â*Â*Â* |Â*Â*Â*Â* |Â*Â*Â*Â* |Â*Â* +------- month (1 - 12) #Â*Â*Â*Â*Â*Â* |Â*Â*Â*Â* |Â*Â*Â*Â* +--------- day ofÂ*Â*Â*Â*Â*Â*Â* month (1 - 31) #Â*Â*Â*Â*Â*Â* |Â*Â*Â*Â* +----------- hour (0 - 23) #Â*Â*Â*Â*Â*Â* +------------- min (0 - 59) Â* Â* What would be the entry of a bi-monthly entry? (every 2 weeks)Â*Â* Doing it in hours is not very elegant. Should I Gio like this? Â* 0 10 1,15 * *Â*Â* /etc/scripts/my_script? Â* Thanks. Â* Â* bi weekly would be every two weeks, usually 26 times a year, sometime you get 27 depending on the quirks of the calendar. Â*Can't do it with a cron job. Â*Would have to write a script to submit the jobs individually using at. Â*Would be messy. Â* the above is semi monthly you get 24 runs a year. Â* bi monthly gets you 6 a year, every two months. Â*Not even close to what you want. Â* If the 1st and 15th of the month is "close enough" go with that. Â*If you have to satisfy a non negotiable bureaucratic requirement after you find out some more of the fine print you might have to write the messy script. Â* Â* Â* Â* -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users -- Drew Einhorn "You can see a lot by just looking." Â* --Â* Yogi Berra Â* Â* Â* Thanks.Â* I am not worried of having 24 or 27 runs..Â*Â* TheÂ* script does a find –mtime +15 Â*and erase old backups J Â* Thanks to all. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Cronjob bi-Monthly Setup
On Thu, 2010-12-02 at 16:14 -0500, Maxime Alarie wrote:
> Hi, > > This is my crontab Reference: > > > > #Crontab Reference > > # * * * * * command to be executed > > # - - - - - > > # | | | | | > > # | | | | +----- day of week (0 - 6) (Sunday=0) > > # | | | +------- month (1 - 12) > > # | | +--------- day of month (1 - 31) > > # | +----------- hour (0 - 23) > > # +------------- min (0 - 59) > > > > > > What would be the entry of a bi-monthly entry? (every 2 weeks) Doing > it in hours is not very elegant. Should I Gio like this? > > > > 0 10 1,15 * * /etc/scripts/my_script? > > > > Thanks. > > See man 5 crontab this seems to say you need */2 in the month field for every other month. Tony -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 09:52 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.