如何取得top裡面Tasks running的數量 - Linux
By Kelly
at 2012-12-14T23:31
at 2012-12-14T23:31
Table of Contents
大家好
小弟想弄個script視running task的數量來issue tasks
目前看到可用的指令有ps與top
"ps":
目前想不到辦法抓出正確的process在top中顯示為running (%CPU ~ 100)
"top":
試過用$ top | grep 'running'
但這個辦法會因為top的行為是一個程式,使script無法繼續往下執行
是否有可以中斷他的辦法?
是否有人有解決的方案?
謝謝!
--
小弟想弄個script視running task的數量來issue tasks
目前看到可用的指令有ps與top
"ps":
目前想不到辦法抓出正確的process在top中顯示為running (%CPU ~ 100)
"top":
試過用$ top | grep 'running'
但這個辦法會因為top的行為是一個程式,使script無法繼續往下執行
是否有可以中斷他的辦法?
是否有人有解決的方案?
謝謝!
--
Tags:
Linux
All Comments
By John
at 2012-12-16T23:46
at 2012-12-16T23:46
By Sandy
at 2012-12-17T11:45
at 2012-12-17T11:45
By Skylar Davis
at 2012-12-22T04:40
at 2012-12-22T04:40
By Harry
at 2012-12-25T05:03
at 2012-12-25T05:03
By Mia
at 2012-12-29T13:11
at 2012-12-29T13:11
By Callum
at 2012-12-29T20:54
at 2012-12-29T20:54
By Damian
at 2013-01-01T03:13
at 2013-01-01T03:13
Related Posts
centos 5.8安裝問題(P9X79)
By Irma
at 2012-12-14T20:05
at 2012-12-14T20:05
讓vsftp在啟動時不自動執行
By Vanessa
at 2012-12-14T15:47
at 2012-12-14T15:47
Ubuntu 12.10 Release Party @ Taiwan 台南場
By Charlotte
at 2012-12-14T13:40
at 2012-12-14T13:40
AT89S51在linux上的燒錄
By Rosalind
at 2012-12-13T16:48
at 2012-12-13T16:48
Slax 7.0 發布
By Anthony
at 2012-12-13T13:32
at 2012-12-13T13:32