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

Re: [ProgSoc] Crontab syntax question



On Mon, 26 Feb 2001 kelmans@nospam.progsoc.uts.edu.au wrote:

> Cron doesn't seem to be able to do and so you could try the following hack
> 
> 0 8 1-7 * * if  [ `date +%u` -eq 5 ]; then echo first friday;fi
> 
> should work (in theory :-)

Also seems to work in practice. :)

That's about the neatest way of doing it too. Thanks for
all the replies, you guys saved me a lot of trouble..

Pramod,



-- 
Pramod Korathota <bug@nospam.progsoc.uts.edu.au>

"Engineers never lie; we just approximate the truth."


-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.