1
I wanted to know if there a way to save the output from top or atop commands into a textfile for later processing.
atop|top > output.txt
is not really working at both top and atop keep running in the background.
edit:
OS: RHEL 6
other attempts: top | awk 'fflush(stdout)'
possible duplicate of How to redirect values from top command to a file in Mac OSX
– Ƭᴇcʜιᴇ007 – 2014-07-02T20:13:54.973not quite, I can't seem to be able to get this working on my RedHat box – user1745713 – 2014-07-02T20:22:40.223
Please edit your question to include which OS and version you are using, as well as adding a complete list of what you've tried already (and the results). – Ƭᴇcʜιᴇ007 – 2014-07-02T20:24:03.640