Article delegate-en/3234 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3228@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: File size issue with FTP cache
22 May 2006 11:54:07 GMT Steffen Kaiser <p44eqbdyi-h3lluohg4rxr.ml@ml.delegate.org>


On Sun, 21 May 2006, Yutaka Sato wrote:

Hello,

I also tried it with this Perl snippet without luck:
see attached ZIP file for script and log.
the log was tested with:

perl /tmp/ftp-test.pl ftp://localhost:2121/pub/debian-iso/sarge/ 
ftp://cdimage.debian.org/cdimage/weekly-builds/i386/iso-dvd/
Unfortunately, the STDOUT and STDERR are munged together.

use Net::FTP;

my $ftp =  Net::FTP->new($host, Debug => 1)
                 or die "$@" ;

         $ftp->login("anonymous",'\-anonymous@')
                          or die "Cannot login ", $ftp->message;

         $ftp->cwd($path)
                          or die "Cannot change working directory ", 
$ftp->message;

         print join("\n", $ftp->dir())
          , "\n";

Bye,

-- 

Steffen Kaiser

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V