Bash ~ Perl ~ Python ~ Batch ~ Ruby
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment