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