- #!/usr/bin/expect
- # $Id: dns.named,v 1.1.1.1 2002/02/26 10:16:37 oetiker Exp $
- spawn ftp HOST.YOURE.DOMAIN
- expect "Name"
- send "USERr"
- expect "^Password:"
- send "PASSWORDr"
- expect "ftp>"
- send "cd /var/tmpr"
- expect "ftp>"
- send "asciir"
- expect "ftp>"
- send "lcd DIRECTORY/WICH/STAT.pl/WILL/USE/TO/GET/NAMED.STATSr"
- expect "ftp>"
- send "get named.statsr"
- expect "ftp>"
- send "quitr"
- sleep 4