Skip to content

Instantly share code, notes, and snippets.

@rogerleite
Created Nov 23, 2009
Embed
What would you like to do?
#! /bin/sh
#reference: http://www.mysysad.com/2008/01/ftp-using-shell-script.html
REMOTE='esoft'
USER='anyuser'
PASSWORD='myftp125'
FTPLOG='/tmp/ftplog'
date >> $FTPLOG
ftp -n $REMOTE <<_FTP>>$FTPLOG
quote USER $USER
quote PASS $PASSWORD
bin
cd /myraid/dailyjpgs
mput *.jpg
quit
_FTP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment