[Gllug] Getting top to output ascii and exit?
Rev Simon Rumble
simon at rumble.net
Sat Oct 1 19:19:02 UTC 2005
How can I get top to output one page and exit? I'm building a simple
system monitoring web page and want it to give me whatever's hogging the
system.
This works from a shell:
TERM=tt top -n 1
But not inside my shell script. Any thoughts?
--
Rev Simon Rumble <simon at rumble.net>
www.rumble.net
The Tourist Engineer
Because geeks travel too.
http://engineer.openguides.org/
"Why do we have to hide from the police, Daddy?"
"Because we use emacs, son. They use vi."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20051001/e3918fe5/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list