in reply to Is there anyway to redirect the output of exec?
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
|
|---|