ezoic

Friday, August 10, 2018

Sample code for automatically log into sftp , and load a file to sftp


sample code

#!/bin/sh
HOST='HOST'
USER='USER'
PASSWD='PASS'


sshpass -p $PASSWD sftp $USER@$HOST << EOF

put file1.txt

EOF
echo "end ftp"
exit

No comments:

Post a Comment

R is not a simple programming language, and it does better on reading excel files than python

R is not a simple programming language, and it does better on reading excel files than python . tried to read excel files to python and R. i...