redirect stdout and stderr of child processes to show inline