copy process output to stout