Hi All,
Is it possible to assign FTP hostname & portnumber in one parameter? To the current script we have the values are passed via csv file(comma seperated values). This csv file consists of multiple FTP host records and all hosts got default port number. Now for one of our server there is a change in the port number and I am looking whether it possible to assign both host & port in one parameter.
.CSV file structure:
Identifier,Host,Userid,passwrd
param, ,red,hat121
gate, ,gate,gate123
I assigned port number with a space in the file but it did nt work.
gate, 1089,gate,gate123
Script:
ftp -n -v $ftphost > $log_status_file <<SCRIPT
user $ftpuser $ftppass
lcd $path
pwd
epsv off
put $filename $remfile
$ftpfilename $remfile: are passed from different file.
Thanks in advance for the help and advices.
Kumari
Is it possible to assign FTP hostname & portnumber in one parameter? To the current script we have the values are passed via csv file(comma seperated values). This csv file consists of multiple FTP host records and all hosts got default port number. Now for one of our server there is a change in the port number and I am looking whether it possible to assign both host & port in one parameter.
.CSV file structure:
Identifier,Host,Userid,passwrd
param, ,red,hat121
gate, ,gate,gate123
I assigned port number with a space in the file but it did nt work.
gate, 1089,gate,gate123
Script:
ftp -n -v $ftphost > $log_status_file <<SCRIPT
user $ftpuser $ftppass
lcd $path
pwd
epsv off
put $filename $remfile
$ftpfilename $remfile: are passed from different file.
Thanks in advance for the help and advices.
Kumari