ftp ftp://bapte:b2p7Ua2@ftp.backupte4.rsyncbackup.infoAnd I gotftp: ftp://bapte:b2p7Ua2@ftp.backupte4.rsyncbackup.info: Name or service not knownI tried a bunch of different things. I looked at manual. No luckI tried ftp -user username password ftp.backupte4.rsyncbackup.infoas said in manualftp: u: unknown optionAll I need is a sample that works.The manual saidhttp://linux.about.com/od/commands/l/blcmdl1_ftp.htmuser user-name [password ] [account ]    Identify yourself to the remote FTP server. If the password is not specified and the server requires it, ftp will prompt the user for it (after disabling local echo). If an account field is not specified, and the FTP server requires it, the user will be prompted for it. If an account field is specified, an account command will be relayed to the remote server after the login sequence is completed if the remote server did not require it for logging in. Unless ftp is invoked with auto-login disabled, this process is done automatically on initial connection to the FTP server. So what exactly I should put?
How to specify username password for ftp
ftp
you can't exactly do it with a command line option, but what you can do is redirect stdin like so:$ ftp -n ftp.backupte4.rsyncbackup.info << EOF> quote USER bapte> quote PASS b2p7Ua2> put somefile  <-- this is the command you want to execute> quit> EOFor you can put it in a script:#!/bin/shftp -n ftp.backupte4.rsyncbackup.info << EOFquote USER baptequote PASS b2p7Ua2put somefilequitEOFFinally you could use lftp:lftp -u bapte,b2p7Ua2-e your command;quit ftp.backupte4.rsyncbackup.infohttp://lftp.yar.ru/lftp-man.html