Re: stdout and stderr
- Posted by jimcbrown (admin) Sep 05, 2008
- 864 views
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.