exec transfers control to the system utility you call. The 'parent' is metamorphosed: it does not bear young. You can see that with:
You can redirect output by opening *STDOUT to what you want before exec.$ perl -e'print $$, $/; exec "perl", "-e", "print $$;"' 20540 20540$
After Compline,
Zaxo
In reply to Re: Is there anyway to redirect the output of exec?
by Zaxo
in thread Is there anyway to redirect the output of exec?
by alk1000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |