----- Original Message ----- 
From: "James Kelty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 2:17 PM
Subject: File System Sizes....


> Hello!
> 
> I am new to the list, so forgive me if this is not the correct forum. I am
> writing (attempting to anyway) a script that will look at the size of the
> filesystem, and warn me if it is getting too full, say 90% percent or so.
> 

[...]

Perhaps this is one of those rare times when a plain
old shell script would better suit your purposes?

 df |awk '{print $5}' |tail +2 |tr -d %

.... you get the list from there, and test each partition
in order.

Perhaps there are still certain problems that lend 
their solutions to a simple shell script.

Perl appears to be better for the more complex stuff
(which seems to happen every single day here!)

-- 
Mark



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to