1844185 Members
2435 Online
110229 Solutions
New Discussion

FTP Script

 
Abhijit P.
Valued Contributor

FTP Script

Hi all...

I am doing a ftp mget from a remote server and want to get multiple files from multiple directories but having same naming convention.
I have made a script for that.

Please tell me how should I supply this scriptfile name as a argument to the ftp command.

Thanks in advance

Regards,
Abhijit
3 REPLIES 3
Michael Schulte zur Sur
Honored Contributor

Re: FTP Script

Hi,

you can do it with
ftp -ivn host < scriptfile
Add the connect at the beginning of the script.
Or if you run the script manually you just do
ftp -iv host < scriptfile

greetings,

Michael
Abhijit P.
Valued Contributor

Re: FTP Script

Hi michael..

thank you very much for the quick response.
problem solved

once again thanks

Regards,
Abhijit
Abhijit P.
Valued Contributor

Re: FTP Script

thanks micheal