Re: Crontab last days of the month..

2004-04-14 Thread Dave Sherohman
On Wed, Apr 14, 2004 at 01:35:13PM -0400, Rick Pasotto wrote: > if [ $(date -d tomorrow '+%m') -ne $(date '+%m') ] > then > echo 'today is the last day of the month' > fi [ $(date -d tomorrow '+%d') -eq 1 ] && echo 'last of the month' This can also be done directly in your crontab: [ $(dat

Re: Crontab last days of the month..

2004-04-14 Thread N. Thomas
* s. keeling <[EMAIL PROTECTED]> [2004-04-14 09:58:38 -0600]: > Another way is to run it every day, but have the script figure out if > it's the last day of the month, and exit if not. Or even better: run it on the 28th-31st day of each calendar month and then have the script figure out if it's th

Re: Crontab last days of the month..

2004-04-14 Thread Rick Pasotto
On Wed, Apr 14, 2004 at 09:58:38AM -0600, s. keeling wrote: > Incoming from Wayne Topa: > > Rus Foster([EMAIL PROTECTED]) is reported to have said: > > > Hi All, > > > Couldn't find a decent answer to this in google but goes as follows > > > > > > If I have a cron job that is scheduled for the 31s

Re: Crontab last days of the month..

2004-04-14 Thread s. keeling
Incoming from Wayne Topa: > Rus Foster([EMAIL PROTECTED]) is reported to have said: > > Hi All, > > Couldn't find a decent answer to this in google but goes as follows > > > > If I have a cron job that is scheduled for the 31st of the month and the > > month we are in doesn't have 31 days would it

Re: Crontab last days of the month..

2004-04-14 Thread Wayne Topa
Rus Foster([EMAIL PROTECTED]) is reported to have said: > Hi All, > Couldn't find a decent answer to this in google but goes as follows > > If I have a cron job that is scheduled for the 31st of the month and the > month we are in doesn't have 31 days would it be run on the last day of > the month