一个自动ftp的脚本
发表于:2007-06-08来源:作者:点击数:
标签:
#!/usr/bin/expect
spawn ftp ftp.internic.net
expect "Name"
send "anonymous\r"
expect "Password:"
send "nothing\r"
expect "ftp>"
send "cd domain\r"
expect " ftp>"
send "get named.root\r"
expect " ftp>"
send "quit\r"
#脚本的目的是登陆ftp.internic.net网站取得named.root文件然后退出#登录.
原文转自:http://www.ltesting.net