in reply to How to get FTP log via Net::FTP

You could turn on Net::FTP debugging:
my $ftp = Net::FTP->new($HOST, Debug => 1);
And then use the Net::Cmd debugging methods (such as message) to retrieve the returned messages from the FTP server. Read the documentation of Net::Cmd on CPAN for a list of debugging facilities/methods available.

Replies are listed 'Best First'.
Re: Re: How to get FTP log via Net::FTP
by any2xml (Initiate) on Dec 31, 2003 at 08:16 UTC
    That was quick. I checked Net::FTP to find that there is a message method to return the ftp server response. This method is inherited by MVS::JESFTP. It gave me what I wanted. Thank you so much. For those who use MVS::JESFTP, after every FTP command you can use MVS::JESFTP->message (or say $jes->message where $jes is the object) which returns an array of lines. Currently MVS::JESFTP checks held output for jobname. It can be easily modified to check on jobnumber, which is more accurate. Happy New Year all!!