in reply to perl sorting shell output

iftop is a command that continuously updates its display and as such not well suited to be read from a script. There might be a command line switch to generate a one-off display??

Replies are listed 'Best First'.
Re^2: perl sorting shell output
by mrc (Sexton) on Apr 23, 2013 at 07:46 UTC
    I'm able to capture the output, because after some time I kill the pid.

      iftop has a -b switch that suppresses the bars showing network load. Have you tried that? I have no *nix box at hand and cannot try myself.