in reply to Re^4: unexplained output from top in batch mode
in thread unexplained output from top in batch mode

Hrm, my leading spaces comment doesn't really make any sense looking back, but I was just rejecting the idea it had to do with open3. The problem really has to be with the way top is reading the procs or the way you're parsing it.

Pretty sure you can set cmdline with $0, which is probably what claws is doing (or the C analog or whatever), but I'm really not sure what /status is set from. I seem to recall it comes from something else.

-Paul

  • Comment on Re^5: unexplained output from top in batch mode

Replies are listed 'Best First'.
Re^6: unexplained output from top in batch mode
by zentara (Cardinal) on Jan 13, 2007 at 17:46 UTC
    Yeah, I think they key is that if I dump the output of "top -b" to a file, like "top -b >>top.out", the name 'claws' appears as the command name. But if I send thru the IPC pipe, it turns to '3', which may be the filehandle's fileno? I don't know, but every other app I've tried seems to work Ok, so I posted it as a bug report with sylpheed-claws, so we will see what they say.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum