linux - FTPS put file on FTP SERVER Using Shell -


i need upload files of directory /home/test ftp server, in specific folder. schedule script hourly via cron. examples? try solutions i'm not able put file. code

host=***** user=**** password=**** port=990 file=test.txt ftp -inv $host << eof user $user $password cd /test put test.test bye eof 

i found solution:

lftp -u $user,$password ftps://$host:$port <<eof  set ssl:verify-certificate no  set ftp:ssl-protect-data true  put test.txt  exit  eof

thanks lot ideas.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -