feisky

云计算、虚拟化与Linux技术笔记
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年11月17日

摘要: 后台执行的方法: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)

无觅相关文章插件,快速提升流量