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

Re: howto tell cron run last day of month



check out the GNU date function.  I know that you can specify 'yesterday'
and believe that you can 'tomorrow' as well, so if tomorrow is the first,
then today is the last.  Sorry, I'm on a solaris box with boring date and
it doesn't do that to my knowledge.

rick

Nate Duehr writes:

> Would midnight on the 1st work?  Just a thought.
> 
> There's no situations I can think of where the first of the month
> doesn't exist in most locales, since daylight savings changes officially
> at 2 AM in places that do that.
> 
> (like here... grrr)
> 
> On Tue, Oct 17, 2000 at 06:12:21PM +0200, Jaume Teixi wrote:
> > I run a cron script 27-31
> > then inside the script i need to check if it this last day of month
> > 
> > how to check this ?
> > 
> > thanks,
> > jaume.
> > 
> > 
> > -- 
> > Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> > 
> 
> -- 
> Nate Duehr <nate@natetech.com>
> 
> GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
> Public Key available upon request, or at wwwkeys.pgp.net and others.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


--
When Gladstone was British Prime Minister he visited Michael Faraday's
laboratory and asked if some esoteric substance called `Electricity'
would ever have practical significance.
"One day, sir, you will tax it," was the answer.
                       -- Science, 1994



Reply to: