2012年4月16日
摘要: a.sh 1 #/bin/sh 2 echo "haha"; 3 exit 1;perl脚本22 my $output=qx(sh a.sh);23 my $exitcode=$?;24 $exitcode>>=8;25 print "output=$output\n";26 print "exitcode=$exitcode\n";27 system("pwd");28 print STDERR "$0 has finished,congratulations!\n";29 pri 阅读全文
posted @ 2012-04-16 17:42 finallyly 阅读(416) 评论(0) 推荐(0) 编辑