redirect STDOUT to a file in a subshell

Hi,

I would like to avoid re-directing line by line to a file.

What is the best way to re-direct STDOUT to a file in a subshell?

Thanks in advance.

Cheers
Vj

Put

exec >/path/to/file

somewhere near the beginning of the file. Or

exec 3>&1
exec >/path/to/file

if you want to still be able writing to the original output channel later by using FD 3 instead of 1.