博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年7月24日

摘要: scp.sh#!/usr/bin/expect -fset port 1234set user "me"set host "192.168.1.2"set password "whatismypassword"set timeout - 1set file [ lindex $argv 0]set hostFilePath "/home/me/"spawn scp -P$port $file $user@$host:$hostFilePathexpect "*assword:*"send &qu 阅读全文

posted @ 2013-07-24 19:58 david2303 阅读(873) 评论(0) 推荐(0) 编辑