#!/usr/bin/expect -f
spawn scp user@ip:/target.tar /data/target.tar
set timeout -1
expect “*assword:”
exec sleep 1
send “mypassword”
expect eof
March 21, 2016
expect脚本范例
Comments Off on expect脚本范例
No Comments
No comments yet.
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.