open(STDOUT, '|-', bash => ( -c => 'trap "" INT ; tee -- "$0"', $outfile, ) ) or die; #### open(STDOUT, '|-', tee => ( '-i', '--', $outfile ) ) or die;