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] 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now