Been meaning to document this. You can just pipe the ftp commands to ftp command, rather than create a script and then call it:
echo “cd testing
mput *.csv
” | ftp -i myFtpServer
You’ll need to setup your ~/.netrc file with the myFtpServer credentials.
Advertisements