crontab question
inode0
inode0 at gmail.com
Mon Mar 3 14:31:17 UTC 2008
On Mon, Mar 3, 2008 at 8:24 AM, Michael Weber <mweber at alliednational.com> wrote:
> Greetings!
>
> I have a need to run a cron script periodically on two different machines. One should run the script on even hours and the other on odd hours.
>
> Is there a way to script the odd hour execution elegantly?
>
> 05 1,3,5,7,9,11,13,15,17,19,21,23 * * * root /usr/local/sbin/sync-help-files.sh
>
> is nowhere near as nice or intuitive as the even hour version
>
> 05 */2 * * * root /usr/local/sbin/sync-help-files.sh
1-23/2 ?
John
More information about the redhat-sysadmin-list
mailing list