[mrtg] Re: MRTG Add on script

Si si at inner-city.org.uk
Fri Nov 2 00:06:58 MET 2001


> CURRENT=`date "+%m"`
> MONTH=`expr $CURRENT - 1`
> if [ `expr $MONTH : '.*'` -eq 1 ]
> then CURRENT=0$MONTH ; MONTH=$CURRENT
> fi
> YEAR=`date "+%Y"`
> DAYS=`./monthdays $YEAR $MONTH`

Use complete pathnames, i.e. CURRENT=`/bin/date "+%m"` and the same for your
monthdays program.

-Si.


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list