in reply to Obtaining statistics for Net::FTP transfers
the $ftp->message; will contain some message. For example
gives an output like#!/usr/bin/perl use Net::FTP; $ftp = Net::FTP->new("mysite.com", Debug => 0); $ftp->login("myusr",'mypwd'); print $ftp->message,"\n"; $ftp->cwd("/pub"); print $ftp->message,"\n"; $ftp->get("myfile.pdf"); print $ftp->message,"\n"; $ftp->quit;
User myusr logged in. CWD command successful Opening ASCII mode data connection for myfile.pdf (10816217 bytes) Transfer completeHere we gets the size in bytes.
Cheers !
--VC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Obtaining statistics for Net::FTP transfers
by qragamu (Initiate) on Sep 06, 2007 at 09:45 UTC |