On Thu, Apr 26, 2001 at 12:32:46PM -0700, Karsten M. Self wrote:
> To run on the fifth Sunday in a month, only if it exists:
> 
>     0 1 29 1,3-12 *   echo 'command -args' | at 1:34 sunday
> 
> To run on the fifth Sunday in a month, *or* the following
> Sunday if it does not:
> 
>     0 1 29 *      *   echo 'command -args' | at 1:34 sunday
> 
> The special case of running on the fifth Sunday of February in a leap
> year, but only if it exists...I don't have a solution at the moment.
> 
> 
> Another missing specification:  does anyone have a good "last weekday of
> month" recipie?

looks like CRON needs a tweak or two, hmm?

what if we propose something like

        #min hr monthday month weekday cmd
           0  1     1      1      *    echo Jan 1 1:00am
        #and for the new concepts, which could use tweaking:
           0  1    -1      *      *    echo last-of-every-month, 1:00am
           0  1     *      *   mon-fri echo mon,tue,wed,thu,fri at 1:00am
           0  1     *      *    wed1   echo first wednesday each month, 1am
           0  4     *      *    sun-1  echo last wednesday each month, 4am

hmm?

-- 
DEBIAN NEWBIE TIP #16 from Will Trillich <[EMAIL PROTECTED]>
:
Why are *.rpm (RED HAT PACKAGES) considered spawn of Satan?
Because the Debian package system is a lot more sophisticated
than the one Red Hat uses; lots more inter-dependency information
is built in to a *.deb package. If you bypass that with an *.rpm
file, you're taking chances with your system. Try to "apt-get
install <debian-only>" packages if possible. (Also check out the
"alien" package if you must.)

Also see http://newbieDoc.sourceForge.net/ ...

Reply via email to