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
In reply to Re: Capturing top-like program output
by dorko
in thread Capturing top-like program output
by Alien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |