Forum Moderators: phranque
You could specify a text file containing your FTP commands. Something along these lines:
ftpinput.txt
userid
password
lcd /path/to/local/directory
cd /path/to/remote/directory
put localfilename remotefilename
quit
ftp -s:ftpinput.txt <host>