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
Post a Comment