Search Results

Search: Posts Made By: d-train
1,347
Posted By itkamaraj
value=$(swap -s | nawk '{print...
value=$(swap -s | nawk '{print substr($11,1,length($11)-1)}')
[ "$value -le "10000000" ] && mail -s "swap availability is $value" abcd@abcd.com < /dev/null || echo "swap availability is fine"
3,149
Posted By rdcwayx
Update from your own code. ps -ef -o pmem -o...
Update from your own code.

ps -ef -o pmem -o pid -o rss -o vsz -o args -o user |awk '!/VSZ COMMAND/&&/2/&&$1>3.0' |sort -r |head -10
3,149
Posted By agama
Assuming you are running Kshell you could pipe it...
Assuming you are running Kshell you could pipe it into a while like this:


ps -ef -o pmem -o pid -o rss -o vsz -o args -o user | grep 2 | grep -v "VSZ COMMAND" | sort | tail -10 | sort -r | while...
Showing results 1 to 3 of 3

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