-
hello,
i need a filesystem shell script to monitor %full
thanks
-
#!/bin/ksh
for wline in `df -kl | grep -iv Capacity | awk '{print $5 $6}'`
do
pct=`echo $wline | awk -F% '{print $1}'`
mp=`echo $wline | awk -F% '{print $2}'`
if (( pct > 80 ))
then
echo $mp" is "$pct"% full!"
fi
done
Jeff Hunter
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|