Tool: FTP Automation Commands
FTP is interactive and needs you to supply credentials when prompted
you can’t exactly pipe in FTP creds with a command line option, but what you can do is redirect stdin like so:
$ ftp -n 10.10.10.44 << EOF
> quote USER ftpuser
> quote PASS 2bor!2b
> put somefile <-- this is the command you want to execute
> quit
> EOF
or you can put it in a script:
#!/bin/sh
ftp -n ftp.backupte4.rsyncbackup.info << EOF
quote USER popashell
quote PASS lowdown
put somefile
quit
EOF