reessaye ça et dis si qq chose s'affiche
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #!/usr/bin/perl use warnings; use strict; use Carp; use Net::FTP::Recursive; my $host = "ftp.ensembl.org"; my $rep = "/pub/current_genbank"; my $ftp = Net::FTP::Recursive->new($host, Debug => 0) or die "Cannot connect to $host: $@"; my ($login,$password) = ("anonymous","anonymous"); $ftp->login($login,$password) or die "Cannot login ($login)", $ftp->message; $ftp->cwd($rep) or die "impossible de changer de repertoire : $rep ", $ftp->message; $ftp->binary; print "telechargement en cours\n\n"; $ftp->rget( MatchDirs => ".*" ) or warn "impossible de telecharger ", $ftp->message; $ftp->quit; print "Fini\n";
Partager