08-20-2008
38,
0
Join Date: Aug 2008
Last Activity: 3 April 2009, 11:39 AM EDT
Posts: 38
Thanks Given: 0
Thanked 0 Times in 0 Posts
need some help with a script
Hi there all,
I am trying to build a script that will e-mail me a warning when 1 of the HD reaches over 90%
I got it working so far a that it mails me when it reaches a **% with an if statement.
so if [ "$PKG" = "90%" ]
but is there a way to get the % out of the variable?
I get it with
PKG=`bdf /***/*** |grep "***" |awk '{printf $5}'`
so than I can make it
if [ "$PKG" = > "90" ]
Well that's what I think.
But I dont know that much.
or is there an other way to get this working?
I dont want to make a than for every 90% + (so 90%, 92%, 93%, and so on)
thanx in advance people!