I don't think there's much documentation on it, but the spawn() function allows you to hook up streams to file descriptors.
On Wed, Jul 23, 2014 at 7:17 PM, Iain Dunning <[email protected]> wrote: > What is the best way to capture STDOUT and STDERR from an external program? > If it can't be done separately, is there an equivalent to the bash-ism > ./myprogram 2>&1 > log.txt >
