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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl FTP of a directory!

Status
Not open for further replies.

JaybOt

Programmer
Apr 18, 2001
101
GB
Hi all,

I was playing with the perl module FTP and also with the unix (freebsd) ftp commands and in found that i could use the mget/mput to get/put multiple files from an ftp site with shell script.

I want to copy all the files from a directory off the root e.g. /store/*.* to a local directory.

Does anyone know if there is a way do the a multiple get/put of files using the perl FTP module. I have trieds all the obvious ways to no avail. I know my script works cos i can download/upload a single file with no problem.

The only way i can see this working is to create a perlscrip that runs a shell script that will do to the ftp login and transfer.

"Always know what you say, but don't always say what you know!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top