Perl, redirect stdout to file
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-05-25T18:56:17Z
Indexed on
2010/05/25
19:01 UTC
Read the original article
Hit count: 157
perl
|io-redirection
I'm looking for an example of redirecting stdout to a file using Perl. I'm doing a fairly straightforward fork/exec tool, and I want to redirect the child's output to a file instead of the parents stdout.
Is there an equivilant of dup2()
I should use? I can't seem to find it
© Stack Overflow or respective owner