摘要:
后台执行的方法:disconnect#!/usr/bin/expectspawn openvpn --config ./test.ovpn expect "*Username:"send "root\r"expect "*Password:"send "passwd\r"if [fork]!=0 exitdisconnect传递参数的方法:set name [lindex $argv 0]#!/usr/bin/expectif { $argc != 2 && $argc != 1 } { send_ 阅读全文
posted @ 2011-11-17 13:17 feisky 阅读(1822) 评论(0) 推荐(0)
浙公网安备 33010602011771号