in reply to Obtaining data from the top command via a pipe
Piping to tee doesn't work either because then tee has access to the screen device but top still hasn't got it and exits just as quickly leaving tee to duplicate the same problem.
Update: Perhaps something like Test::Expect will be able to emulate an ANSI terminal to top's satisfaction.
One world, one people
|
|---|