#!/usr/bin/sh if df -k | grep '\([7-9][0-9]|[0-9][0-9][0-9]\)%' > /dev/null then mailx -s "File system(s) full. Clean up your mess." user@foo. +tla <<'--' Yada yada yada - The angry sysadmin. -- fi
This assumes you don't have mount points or volumes that are named "file_at_89%' though. ;-)
Abigail
In reply to Re: Checking filesystems?
by Abigail-II
in thread Checking filesystems?
by incarnadine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |