perl来处理命令行提示

时间:2013-06-27 20:44:02

标签: perl command-line event-handling

执行系统命令后,它会要求确认,如何从脚本中输入?

从shell执行手动cmd:

$ res ci -f cd-st-vc1
id      bind    name                        from              to                purpose
606118  606118  st-24q-p1-2                 2013-06-27 12:52  2013-06-27 13:02  n/a

Check in id 606118? [y]  <== 'system' doesn't work [Can't exec "y": No such file or directory]. 

还有其他办法可以解决这个问题吗?

0 个答案:

没有答案