in reply to top and STDERR hell...

It sounds like top checks whether its output is going to a TTY or not. If not, it ignores TTY settings. You could possibly fool it with a pseudo-TTY.

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: top and STDERR hell...
by DouglasDD (Beadle) on Jun 08, 2005 at 01:56 UTC
    Interesting. An Expect-like approach had not occurred to me, but it sounds like it would be a good way to attack a program like top that is *usually* interactive (though I was hoping to side-step all the terminal-ish issues w/ the -b flag of top.
    <sigh>

    Thanks,
    ./ddd