Re: [squid-users] simple quiestion

From: Lieven Marchand <lieven.marchand@dont-contact.us>
Date: 09 May 2003 09:59:24 +0200

Henrik Nordstrom <hno@squid-cache.org> writes:

> On Friday 09 May 2003 03.43, George Dominguez wrote:
>
> > How can I schedule a task to run on the first Tuesday of every
> > month?
>
> You can't easily do that with cron.
>
> What you can easily do is to schedule a task which will be run on the
> first day of every month.

Something like
0 0 1-7 * * [ `date +%u` = "2" ] && command-to-be-executed

should work with appropriate quoting.

-- 
There is only one war, and it's not the rich against the poor,
the blacks against the whites, the Federation against the Borg,
or the Democrats versus the Republicans. It's those of us who
aren't complete idiots against those of us who are.
Received on Fri May 09 2003 - 01:59:40 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:28 MST