Re: stdout and stderr

new topic     » goto parent     » topic index » view thread      » older message » newer message

Not trivially. Eu calls isatty() so if you somehow redirect stderr to the tty (say 2> /dev/tty or 2> /dev/console or something) eu will see its still a tty and continue doing its dirty hack.

You could however pipe stderr to another app (such as tee or cat) in a clever way to cause the stderr to go into the pipe and then come out in the other app's stderr. This is as ugly as it sounds. Perhaps even uglier.

rodoval said...

Thanks for the reply. It is then possible redirect stdout to a file and stderr to the screen?

Rodolfo.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu