in reply to top and STDERR hell...
FWIW, I get good results with backticks. For example:
The output is 81 if I omit the "COLUMNS=1000" bit.% perl -MList::Util=max -lwe ' print max map length, `COLUMNS=1000 top -bcS -n 1 2>err.txt`' 208
My system is Debian Linux, and
% top --version top (procps version 2.0.7)
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: top and STDERR hell...
by DouglasDD (Beadle) on Jun 08, 2005 at 02:07 UTC | |
by tlm (Prior) on Jun 08, 2005 at 02:48 UTC | |
by DouglasDD (Beadle) on Jun 08, 2005 at 14:16 UTC | |
by DouglasDD (Beadle) on Jun 08, 2005 at 14:12 UTC |