Quote:
|
Note, this will not work if the % value is something like 90.7%. It has to be 91 or more.
|
this one would do,
assuming single precision,
Code:
prstat 0 1 | grep weblogic | awk '{print $9}' | sed 's/%//' | while line do
if [ `echo $line \* 10 | bc` -gt 900 ]
then
echo "$line greater than 90"
else
echo "$line not greater than 90"
fi
done