Re: script to monitor diskspace

2003-09-19 Thread Nurullah Akkaya
here is the one i used on a aix machine #!/bin/ksh LOGFILE=/oracle/KLT/brarchive.log EMPTY_LOG=/oracle/KLT/empty_log.log AWK_EXECUTABLE=awk echo "BRARCHIVE BOS ALANI KONTROL EDIYOR\n" >> $EMPTY_LOG if [ -n "$1" ] ; then drive_number=$1 else exit fi used_space=`df $drive_number |grep "$drive_numb

RE: script to monitor diskspace

2003-09-19 Thread Marvin Blackburn
s > Sent: Friday, September 19, 2003 2:33 PM > To: [EMAIL PROTECTED] > Subject: Re: script to monitor diskspace > > > On Fri, 19 Sep 2003 08:41:11 -0400 > Marvin Blackburn <[EMAIL PROTECTED]> wrote: > > > Does anyone have a shell script or procedure to monitor dis

Re: script to monitor diskspace

2003-09-19 Thread Sean Estabrooks
On Fri, 19 Sep 2003 08:41:11 -0400 Marvin Blackburn <[EMAIL PROTECTED]> wrote: > Does anyone have a shell script or procedure to monitor disk space. > i.e. notify someone when a filesystem gets too big? > Lots of ways to do this of course. One simplistic way is to add the following line to one