Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP files from multiple source dirs to multiple target dirs

Status
Not open for further replies.

Spence32

Programmer
Sep 29, 2008
4
CA
Hi,

I am very new too Perl scripting, so any help would be greatly appreciated. I am looking to create a Perl script to FTP files from multiple source directories to multiple target directories, with each source directory is mapped to a particular target directory. For example, FTP all files from source dir 100 to target dir 100, source 200 to target 200, etc. I have 9 source and 9 target directories to FTP files from/to. Each directory is on the same level, there are no sub-directories, and I need to FTP all files from each directory, all PDF's, so maybe *.PDF could be used.

I am thinking I need to use a loop, but I am not quite sure how to use it without defining multiple variables for each directory. Any suggestions? Samples?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top