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.
Here is a copy of the script I am trying to run to accomplish the FTP:
# place the wip2.rpt file in the information\production file
use Net::FTP;
$path = "F:\InetPub\wwwroot\Information\Production\";
$file="'RPP.OI0800M1'";
$server="ibmmain";
$user="cmms";
$pw="cmms";
$ftp = Net::FTP->new($server);
$ftp->login($user,$pw);
$ftp->get($file, wip2.rpt);
$ftp->quit
Am I doing something wrong?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.