Re: Changing the inherited STDOUT



Mumia W.!

yosi.kal@xxxxxxxxx wrote:
My program runs as a child process of a process that its STDOUT was
redirected to a file. (open STDOUT, ">$logfile").
[...]

"Perldoc -f open" shows you how to save and restore STDOUT (and STDIN
and STDERR).

This would only work if the child process redirected STDOUT itself, which
from my understanding of the question, it does not.


Daniel

.



Relevant Pages

  • Re: Changing the inherited STDOUT
    ... and STDERR). ... This would only work if the child process redirected STDOUT itself, ... from my understanding of the question, ... It could also work if the child process inherits the saved file descriptors ...
    (comp.lang.perl.misc)
  • Re: Changing the inherited STDOUT
    ... Daniel Fischer wrote: ... (open STDOUT, ">$logfile"). ... from my understanding of the question, ... to write to STDERR, as you said. ...
    (comp.lang.perl.misc)