lftp

Connect to an FTP server anonymously:

lftp -u anonymous, ftp.beandog.org

Connect with username, password, run one or multiple command:

lftp -u beandog,seekrit -e 'ls,quit' ftp.beandog.org