Search Results

Search: Posts Made By: Shreyas N
3,098
Posted By Shreyas N
Rudic, You are taking 6th column? I need 5th as...
Rudic,
You are taking 6th column? I need 5th as it gives the percentage usage.
3,098
Posted By Shreyas N
if [ $( df -kP /home | awk 'NR>1 {print $5}' )...
if [ $( df -kP /home | awk 'NR>1 {print $5}' ) -gt 80 ]; then
echo "exceeds"
else
echo "don't"
fi
this might work if we can...
3,098
Posted By Shreyas N
thanks, but what does NR>1 do? and what is...
thanks, but what does NR>1 do? and what is ${percenta%*%}

does it return only one value of the entire /home/ directory ? coz I need that.

will
IF [ $( df -kP /home | awk '{print $5}' ) -gt...
3,098
Posted By Shreyas N
Script to monitor diskspace of /home/ not to exceed 80%
I want to monitor the diskspace of the /home/ directory NOT to exceed 80%.
I want a script_file.sh for this.

I am trying "df -h" command and I am stuck unable to extract the percentage.

1....
Showing results 1 to 4 of 4

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