Thursday, 29 August 2019

FTP using Unix Shell Scripting

For doing FTP what u need in unix is Username and password and server path where you are transferring file.



send_viaftp(){

ftp -ni $destination
verbose
user $username $password
cd $destinationfolder
ascii
put $myfile
}



#Copying file  to server2

destination=server2
destinationfolder=home/test
username=test
password=tst$888

send_viaftp

No comments:

Post a Comment