Friday, February 10, 2012

sftp by shell script

though sftp is not used nowadays, it is still needed, 

copied from somewhere cannot quite remember

#! /bin/sh
ftp -n ftp.ftp.com <<_FTPEND
quote USER anonymous
quote PASS aa 
bin
cd incoming
put file.tar 
quit
_FTPEND

No comments: