[SunHELP] Script

Sree sreep at qnetstaff.com
Tue May 6 05:12:00 CDT 2003


Modify the script as per your specification, guess it works.... put it in cron
and see th result.....

#!/bin/sh
D1USE=`df -k | tail -1 | awk '{print $5}' |  cut -c1,2`
DUSE=40
export D1USE DUSE
if [ $D1USE > $DUSE ]
   then
   mailx -s "Check Your System Disk Space Mr.Admin Why Are u so Careless"
admin at tecnet.net < .
fi
exit 0

Rgds

SRee



----- Original Message -----
From: "seelan" <seelan at westportmalaysia.com.my>
To: "Sunhelp" <sunhelp at sunhelp.org>
Sent: Tuesday, May 06, 2003 7:20 AM
Subject: [SunHELP] Script


> Dear Gurus ,
>
> I would like to get favour from anyone a script( Solaris 9 ) , which will
> send me a email when ever my SUN Server hard disk space increase to 70% .I
> would really appreciate for a kind help . Thanks
>
> seelan
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list