在线时间:8:00-16:00
132-9538-2358
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
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 print STDERR "Time elapsed:".(Time::HiRes::time-$tmStarted)."\n";
http://www.docin.com/p-56464488.html
评论
请发表评论