[geeks] Script

David Cantrell david at cantrell.org.uk
Wed Nov 6 12:32:46 CST 2002


On Wed, Nov 06, 2002 at 03:28:57PM +0000, Chris David wrote:
> Yes..! i need a script that should monitor file system space regularly and 
> it should send me an email only in case if it exceed some limit say 80%..

df -k| awk '$5>80 { print "danger will robinson, " $6 " is nearly full" }'

in a cron job

-- 
David Cantrell



More information about the geeks mailing list