[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Createing a Crontab for the last day of the month



On 25-Jun-01 Rick Pasotto wrote:
> In the script that the cron job runs every 28-31 put the line:
> 
> if [ `date +%m` == `date +%m --date=tomorrow` ]; then exit; fi

About as neat as you can get!!

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 25-Jun-01                                       Time: 23:19:56
------------------------------ XFMail ------------------------------



Reply to: