【发布时间】:2009-08-14 20:00:00
【问题描述】:
为什么这行 Perl 会中断?
system("paste <\( cut -f2 $file \) $file2 > $fileout");
正确的做法是什么?
【问题讨论】:
为什么这行 Perl 会中断?
system("paste <\( cut -f2 $file \) $file2 > $fileout");
正确的做法是什么?
【问题讨论】:
这一般是因为 Perl 使用 sh 而不是 bash 来执行系统命令造成的。快速的答案是在命令的开头包含 bash -c。更好的答案在这里:
【讨论】: