My [tt]top[/tt] (procps version 2.0.7) has a -b command line parameter, meeaning batch mode, useful if [tt]top[/tt]'s output is piped to other application. The -n parameter is also useful, you can limit the noumber of outputs before [tt]top[/tt] exits.
Look at your [tt]top[/tt]'s man page. Maybe it has the above parameters, or something even better.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.