in reply to Capturing top-like program output
Completely untested:
my $n = 1; while( $n < 5 ) { # capture a single screen's worth of output... my $temp = `top -b -n 1`; # process $temp here... # play nice sleep 15; $n = $n + 1; }
Cheers,
Brent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capturing top-like program output
by jettero (Monsignor) on Jan 06, 2007 at 19:36 UTC | |
by Alien (Monk) on Jan 06, 2007 at 19:40 UTC |