摘要: 使用perl调用外名命令有很多方法,这里就不详细讲解。如有shell脚本a.sh#!/bin/bashecho "script out put"exit 2有perl脚本test.pl调用a.sh#!/bin/perl -w$output = qx(/usr/local/a.sh);$exitcode = $?;print "output = " . $output;print "exitcode = " . $exitcode;执行此perl脚本./test.pl你会发现输出的内容为output = script out putex 阅读全文
posted @ 2012-04-03 23:48 沉默爆破手 阅读(1542) 评论(0) 推荐(0) 编辑