Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

cron behavior



I don't know if you can do what you're trying to do.  The 1/4 notation 
will actually mean every 4th weekday.  So that should be kicking off at 
4:15 on sundays and thursdays, i think.  Something like that.

You can do 1 in the month-day column and that'll kick off on the first of
the month--which isn't quite what you're looking for.  I don't think you
can specify "fourth monday" via cron.

Another thing you could do is have cron kick off a perl script every 
Monday.  That perl script then checks to see if it's a fourth Monday or 
not and if so then runs your backup job.

hth--
/will


On Mon, 31 Dec 2001, jbk wrote:

> I want my full backup script to run every fourth Monday and
> I thought the following sintax would do that, but this
> morning it ran again, this is the second Monday in the
> cycle.
> 
> '15 4 * * 1/4 /etc/backup/backup monday
> >>/var/log/backup/tape.log'
> 
> Does this syntax only work on the HOUR & DAYS_OF_MONTH
> fields? The man page doesn't say.
> 
> The backup script is dependent on the DAY_OF_WEEK field, I
> could change this but it would be two weeks of testing
> again.
> 
> Jim Kelly-Rand
> 
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
> 

-- 
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org