Yes you can, but only if you call close OUTPUT before. The close function will put the return value to $?.
In reply to Re^3: how can I redirect the output of a program and get the exit code too?
by ambrus
in thread how can I redirect the output of a program and get the exit code too?
by vikee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |