Search Results

Search: Posts Made By: ashary
5,915
Posted By ashary
for this warning " message: line 10: [: Use:...
for this warning " message: line 10: [: Use: integer expression expected "
i think it because bash shell cant read -gt,-lt, etc
u can use ksh so they can read it

and i've tried that script...
5,072
Posted By ashary
its work!! thanks for ur advice
its work!!
thanks for ur advice
5,072
Posted By ashary
@dinjo_jo the only command that i know before...
@dinjo_jo
the only command that i know before to show process only top that why i only used it :D

i have question about this :

DOMAIN=`uname -n`
usage=`top | grep idle | cut -c 13-14`
if...
5,072
Posted By ashary
so how to compare integer with decimal???
so how to compare integer with decimal???
5,072
Posted By ashary
since cpu usage use decimal number can i...
since cpu usage use decimal number
can i compare it??
exp:

usage=`top | grep idle | cut -b 13-17'
if [$usage -lt 45 ] then
echo"temp $usage"
fi


can i use code like that???

thanks
5,072
Posted By ashary
Need suggestion about grep and CPU usage
guys i need suggestion about how to grep cpu usage and then compare it
example :
if cpu usage <= 40% then print normal and how much cpu usage is
or cpu usage between 40%-65% print normal and...
Showing results 1 to 6 of 6

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