Tim:
> Hmm, I thought top had an option for a plain text output, but I
can't
> see anything suitable in the man file. Maybe, long ago, when I did
> something like that, I just did "less -R output" ("output" being
the top
> text file).
g:
are you thinking of:
-b : Batch mode operation
Starts top in 'Batch mode', which could be useful for
sending output from top to other programs or to a file.
In this mode, top will not accept input and runs
until the iterations limit you've set with the '-n'
command-line option or until killed.
-n : Number of iterations limit as: -n number
Specifies the maximum number of iterations, or frames,
top should produce before ending.
Yes, that's it. When I looked at the man file, a little while ago, it
just didn't jump out at me as "batch" mode being a cooked output.
As far as the original poster was concerned, I was thinking that getting
a text file created would be less of a problem than taking a screenshot,
on a system where the CPU was being pegged. It can also be easier to
post pasted text to a mailing list, than deal with uploading and linking
to an image, somewhere.
--
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64
All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.
George Orwell's '1984' was supposed to be a warning against tyranny, not
a set of instructions for supposedly democratic governments.