in reply to Re: unexplained output from top in batch mode
in thread unexplained output from top in batch mode
you will see that top's batch output is setting the name to 3 (at least on my machine for /home/zentara/bin/claws), when it's still a string, before any split occurs.sysread(READ,$buf,8192); print "$buf\n\n";
So the question is whether it is top's -b option that does this, or does the IPC::Open3 pipe somehow change it?
When top is run in normal mode(like in an xterm), the name is shown correctly.
Also if I do "top -b >>top.output", the name is shown correctly as "claws". So somehow, coming thru the IPC::OPen3 pipe is causing it to change. Is it possible that a pipe is interpreted to be a weird terminal type (not vt100)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: unexplained output from top in batch mode
by jettero (Monsignor) on Jan 13, 2007 at 13:53 UTC | |
by zentara (Cardinal) on Jan 13, 2007 at 14:13 UTC | |
by jettero (Monsignor) on Jan 13, 2007 at 15:26 UTC | |
by zentara (Cardinal) on Jan 13, 2007 at 17:46 UTC |