SUMMARY (Update): cron question: first Sunday of every month

From: Paul Alukal (palukal@umich.edu)
Date: Thu Dec 19 1996 - 10:54:18 CST


>It appears (the consensus was) that one can not do it in the Solaris
>cron with a single entry ( even though one or two persons suggested
>it's possible).
>
>One possible method is to run the cron on every Sunday, and check
>within the script whether it is the first Sunday.

Well, there were many more mail suggesting a single entry will do it.
I tested it and it works. So you can either set up a single entry in
the cron tab like

0 3 1-7 * 0 command (with appropriate redirection)

or

0 3 1-7 * * shell-script

where the script check for Sunday. You can also do it run on Sundays,
checking for first 7 days.

Thanks to all the replies.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:18 CDT