There is a module called Net::FTP that provides tools for
doing this with perl. You can find it at CPAN.
As to getting it to run automatically, you will probably end
up calling it from some sort of cron job (assuming you are on
a Unix box) If it is something really simple you could do
it with a shell script also (also called via cron ) | [reply] |
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.
| [reply] |
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.
| [reply] [d/l] |