The attached script can be used to get files from the Olive Tree FTP server in a fairly default configuration on an Android phone. Consider it as an example of what can be done with expect.
The script takes a single command line parameter of the IP address of the phone. The user-name and password are the default for the Olive Tree FTP server. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/
#!/usr/bin/expect spawn ftp -p [lrange $argv 0 0] 2221 expect "Name" send "francis\n" expect "Password" send "francis\n" expect "Remote" send "cd /DCIM/camera\n" expect "Directory" send "bin\n" expect "Command TYPE okay" interact
_______________________________________________ luv-main mailing list [email protected] http://lists.luv.asn.au/listinfo/luv-main
