[plug] Crontab
Mike Holland
myk at golden.wattle.id.au
Wed Sep 26 17:23:03 WST 2001
On Wed, 26 Sep 2001, Russell Steicke wrote:
> A better idea (IMHO) would be to use the week number, which is available
> with a %U, %V or %W expando in the date command's format string. ie
Yes, but even better to use an absolute week number, and avoid the year
changeover problem.
perl -e 'if ( int( time() / (7*24*3600))%2){print "odd\n"}'
> This way you don't have to keep state lying around in your filesystem
> between runs.
A good principle.
--
Mike Holland <myk at golden.wattle.id.au>
--==--
"Everybody is talking about the weather but nobody does anything
about it." -- Mark Twain
More information about the plug
mailing list