Specify 'stdout' or 'stderr' as the first argument.