Subroutine message()
Subroutine message()
- The header message is printed only on the first call to message()
- Nonzero is True and Zero is false
- The message prints:
- Filesystem with the problem
- the type of problem (low disk space or inodes)
- what's available and total allocation
sub message{
local ($avail, $fs, $type, $total)=@_;
if ($FLAG) {
print "ADDRESS The Following:\n";
$FLAG=0;
}
printf "\t%s is low on %s(%d/%d)\n",
$fs, $type,$avail,$total;
}