Saturday, 27 October 2012

Finding more consumption time

ps aux  | gawk 'BEGIN{FS=" ";RS="\n"} {if($3>0) {x+=$3}} END{if(x>58) {print "System is using more then the limit"}}'

No comments:

Post a Comment