Code Sample |
#!/bin/murgaLua local ftp = require("socket.ftp") file,error = ftp.get("ftp://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/apps/xeyes.info") if error == nil then io.output("xeyes.info"); io.write(file); end file,error = ftp.get("ftp://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/apps/xeyes.tar.gz.md5.txt") if error == nil then io.output("xeyes.tar.gz.md5.txt"); io.write(file); end file,error = ftp.get("ftp://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/apps/xeyes.tar.gz;type=i") if error == nil then io.output("xeyes.tar.gz"); io.write(file); end |