Re: Crontab: Do something exactly every 3 week on Tuesday?
- From: "Joachim Schmitz" <nospam.jojo@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 Jun 2008 09:21:01 +0200
Kees Theunissen wrote:
F. Michael Orr wrote:like:
An elegant solution to this problem is to not use 'cron' at all; use
'at'. 'at' the script to run the first time at the appropriate time
on the first Tuesday that you want. Have the script run, and if all
goes well, make the last line of the script be:
at now + 21 days 'scriptnamehere'
I suppose you mean
echo 'scriptnamehere' | at now + 21 days
or something similar.
at now +21 days <<-!
'scriptnamehere'
!
Why not using "$0" rather that 'scriptnamehere'?
"at" reads the command(s) to execute from stdin or from a file if
you specify such a file.
Bye, Jojo
.
- References:
- Re: Crontab: Do something exactly every 3 week on Tuesday?
- From: Barry Margolin
- Re: Crontab: Do something exactly every 3 week on Tuesday?
- From: F. Michael Orr
- Re: Crontab: Do something exactly every 3 week on Tuesday?
- From: Kees Theunissen
- Re: Crontab: Do something exactly every 3 week on Tuesday?
- Prev by Date: Re: Question on the '.d' directory suffix convention.
- Next by Date: Re: Crontab: Do something exactly every 3 week on Tuesday?
- Previous by thread: Re: Crontab: Do something exactly every 3 week on Tuesday?
- Next by thread: Re: Crontab: Do something exactly every 3 week on Tuesday?
- Index(es):