Alien has asked for the wisdom of the Perl Monks concerning the following question:
How could the output of the top program ( and programs similar to it ) could be captured in a script ?
I tried using $var=`top` , and even opened it with a pipe , it can read the first screen but no more than that.Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capturing top-like program output
by Util (Priest) on Jan 06, 2007 at 18:44 UTC | |
|
Re: Capturing top-like program output
by dorko (Prior) on Jan 06, 2007 at 18:51 UTC | |
by jettero (Monsignor) on Jan 06, 2007 at 19:36 UTC | |
by Alien (Monk) on Jan 06, 2007 at 19:40 UTC | |
|
Re: Capturing top-like program output
by zentara (Cardinal) on Jan 06, 2007 at 20:35 UTC |