On Fri, 2002-08-02 at 14:57, Ashley M. Kirchner wrote:
> How does one schedule a crontab to run the last day of the month?
> Considering that each month is different, one can't use '30' or '31' (or
> 28/29), so...what to use?
I don't know, but I use this in a script to do different things if it's
the end of the month:
TOMORROW=`date --date="+1 day" +%d` # Date for tomorrow
# if today is the end of the month (TOMORROW=01) do something
# else do someotherthing
if [ $TOMORROW = "01" ]; then
something
else
someotherthing
fi
--
redhat-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list