in reply to RE: Automatic FTP Script?
in thread Automatic FTP Script?

I am hoping to use the Net::FTP to download a remote file from an IBM Mainframe when a user clicks views a page. I currently have a program that will then read that file and display the contents in a chart. The site is on our Intranet and is hit around 10 times a day. Is their some way that I can access the Net::FTP from Perl Script. Also, I am running ActivePerl v.5.6. I have been attempting to install Net::FTP and I haven't been able to do so properly. I have tried installing from the PPM and I recieve an error that it cannot locate the PPD file for that module. Any thoughts would be appreciated.

Replies are listed 'Best First'.
Re: Re: RE: Automatic FTP Script?
by agoth (Chaplain) on Jan 26, 2001 at 20:31 UTC
    Try installing the libnet bundle, works fine with my Activestate Perl and will install the Net::FTP for you:
    >ppm install libnet
    Then look at the examples a simple ftp get shouldnt need more than ten lines of code or so.
      I'm wondering if anyone has been able to find/create an mget function for Net::FTP. Thanks.
        use Net::FTP::Common;
        ... # Get all .png files (and .PNG, .Png, etc) for ($object->grep(Grep => qr/\.png$/i)) { $object->get(File => $_); }
        Note: this uses a regex, not a glob! And this snippet would also download files with names ending in ".png\n".

        2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$