You've already received some excellent answers.
In case it's of use Re: Reading output of external program without Shell contains some working sample code that saves and restores STDOUT and STDERR.
In reply to Re: STDERR Restore after redirect
by eyepopslikeamosquito
in thread STDERR Restore after redirect
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |