It seems to me you might not really want to fork and exec... you might want to just fork. Then you can do anything you want in the child. From there, use IPC::Open3 or qx// (or open a pipe) with some redirection to get at both the stdout/stderr of the process. Use whatever method you want to hand the output back to the parent.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Exec'ing and output
by sauoq
in thread Exec'ing and output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |