Search Results

Search: Posts Made By: gartie
1,235
Posted By RudiC
How far have you come? ---------- Post...
How far have you come?

---------- Post updated at 18:25 ---------- Previous update was at 17:59 ----------

Howsoever, trydf --output=avail / | { read AV; read AV; [ $AV -gt 700000 ] && echo...
1,235
Posted By jgt
df >temp while read a b c d e f do if [...
df >temp
while read a b c d e f
do
if [ "$f" = "/" ]
then
if [ $d -gt 704000 ]
then
echo "OK"
fi
fi
done <temp

It's easier to not use the -h option on df, just remember...
1,235
Posted By Don Cragun
The default unit on POSIX conforming systems is...
The default unit on POSIX conforming systems is 512-byte blocks; not 1k. And, you can make it a little bit faster by just processing root. If you change the 1st line of the script above to:
df -k...
1,235
Posted By MadeInGermany
df -kP is most portable IMHO.? df -kP / | { ...
df -kP is most portable IMHO.?
df -kP / |
{
read header
read a b c d e f
if [ $d -gt 704000 ]
then
echo "OK"
else
echo "NOT ok"
fi
}
4,530
Posted By juzz4fun
Apart from commands df and mount, I don't know...
Apart from commands df and mount, I don't know much.... specially using these commands for multiple servers. :(
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy