in reply to Re^2: Capturing stdout and segfault of a program
in thread Capturing stdout and segfault of a program

First, see if IPC::Open3 can do what you want. You would use it instead of fork and exec.

If it doesn't, you'll want to create filehandles for your child process with pipe, then assign them to STDIN, STDOUT, and STDERR after the fork, using POSIX::dup2 or similar.

Replies are listed 'Best First'.
Re^4: Capturing stdout and segfault of a program
by Gmong (Novice) on Mar 10, 2005 at 21:27 UTC
    Thank you for the reply :)