搜索文章:

首页  |  Java技术  |  Asp.net  |  Asp编程  |  VC/C++  |  Delphi  |  VB编程

一个自动ftp的脚本

#!/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文件然后退出#登录.


下一篇:dns全攻略 >>
相关文章:
© 2006   www.java-asp.net