in reply to Re: Expect & top
in thread Expect & top

ty

Replies are listed 'Best First'.
Re^3: Expect & top
by tc1364 (Beadle) on Aug 08, 2005 at 19:33 UTC
    The output from this is much cleaner than using Expect but for example "CPU states: 43.5% idle, 54.2% user, 1.9% kernel, 0.5% iowait, 0.0% swap" line is missing. Could you please help me with obtaining this line?
    open PIPE, "top -b |" or die "Cannot open";