converting character to digit

From: Radhika Sambamurti (radhika_narendran@yahoo.com)
Date: Mon Apr 08 2002 - 12:20:41 EDT


hi,
i am trying to monitor a filesystem such that if it is more
than 80% full, it should send me an email.

in my script I used awk to get the percentage number.

if ($diskspace > 80%)
then
mail -s "80% full" xxx@xyz.com < df -k

How can I convert the value in in $diskSpace to an integer
and then do a test for diskSpace > 80% ?

thanks,
radhika

=====
It's all a matter of perspective. You can choose your view by choosing where to stand.
--Larry Wall

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:10 EDT