Xcross87 Posted April 24, 2010 Report Share Posted April 24, 2010 How can I write a script that can list all processes use over 10%CPU time, process id and name are written into a text file as a report? [moved from Other Distributions by spinynorman] Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted May 5, 2010 Report Share Posted May 5, 2010 top -bn 1 | sed '1,/^$/d' | awk '$9>9{print $1 "," $12}' >/path/to/file.csv Yves. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.