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