Search Results

Search: Posts Made By: sriniv666
Forum: Red Hat 05-16-2011
2,727
Posted By ygemici
limit=2000000 #KB used=$(free -k|sed -n...
limit=2000000 #KB
used=$(free -k|sed -n '2p'|awk {'print $3'} ) ; cached=$(free -k|sed -n '2p'|awk {'print $7'})
if [ $used -ge $limit ]; then
echo -e "Used Memory space reached amount to...
151,032
Posted By steweston
if [$? -ne 0]
$? is the return code form a previous command or function
in unix, 0 is the standard return code for a successful completion

if [$? -ne 0]
The whole line means

'if the previous return code...
Showing results 1 to 2 of 2

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