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

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";

Replies are listed 'Best First'.
Re^4: Expect & top
by AReed (Pilgrim) on Aug 08, 2005 at 22:44 UTC