crontab

Florian Lohoff flo at rfc822.org
Sat Jan 19 12:08:05 CET 2002


On Sat, Jan 19, 2002 at 12:15:31AM +0100, Marcel Martin wrote:
> On Friday 18 January 2002 16:27, Frank Matthieß wrote:
> > Freitag den 18.01.2002 um 16:15 CET  +0100, schrieb Andreas Baier:
> > > >if [  "`date +%m`" -lt "`date +%m --date="1 day"`" ]; then
> > > >	echo "Last day in month"
> > > >	do_your_job
> > >
> > > Das ist aber wirklich elegant !
> 
> ... und funktioniert leider nicht am 31.12., das muss dann vielleicht extra 
> getestet werden
> 
> [ ... -o "`date +%m%d`" = "1231" ]

hallo ?

if [ "`date +%Y%m`" -lt "`date +%Y%m --date="1 day"` ]; then

fi

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020119/72f89438/attachment.sig>


More information about the Linux mailing list