Bioperl: recursive ftp...

Keith Allen allen@deltagen.com
Tue, 27 Apr 1999 17:13:30 -0700


What you're looking for is the Net::FTP module from CPAN.  If you
look in the pod you'll find that the author has provided a nice
little synopsis that does exactly what you describe (although its
not recursive, but if you need a recursive approach this is still the
module to use).

use Net::FTP;

$ftp = Net::FTP->new("ncbi.nlm.nih.gov");
$ftp->login("ftp", "allen\@deltagen.com");
$ftp->cwd("blast/db");
$ftp->get("ecoli.aa.Z");
$ftp->quit;


Hopoe that helps

				-Keith

>What I'd like is a script that just goes to a specified host, logs in,
>cd's to the directory and then ftps the named files.  Does anyone have perl
>code that does this?
>At CPAN I found a shell archive but it's from 1993 and I can't contact the
>author with the e-mail given...
>
>
>thanks,
>Dawn
>
>
>
>
>
>
>Dawn Field
>Oxford Univerisity
>Molecular Infectious Diseases Group. IMM
>John Radcliffe Hospital
>Headington
>Oxford OX3 9DS
>
>e-mail: dfield@molbiol.ox.ac.uk
>
>tel: 011-44-1865-222346 or 222347
>fax: 011-44-1865-222626
>
>
>
>
>
>
>
>
>
>
>
>
>=========== Bioperl Project Mailing List Message Footer =======
>Project URL: http://bio.perl.org/
>For info about how to (un)subscribe, where messages are archived, etc:
>http://www.techfak.uni-bielefeld.de/bcd/Perl/Bio/vsns-bcd-perl.html
>====================================================================


-----------------------------------------
Keith Allen, PhD
Bioinformatics Specialist
Deltagen, Inc
1031 Bing St.
San Carlos, CA 94070
650 610-6826


=========== Bioperl Project Mailing List Message Footer =======
Project URL: http://bio.perl.org/
For info about how to (un)subscribe, where messages are archived, etc:
http://www.techfak.uni-bielefeld.de/bcd/Perl/Bio/vsns-bcd-perl.html
====================================================================