FTP GET for files from mainframes using perl - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > Perl » FTP GET for files from mainframes using perl


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-07-2006   #1 (permalink)
pedro
Junior Member
 
Join Date: Jul 2006
Age: 28
Posts: 5
Default FTP GET for files from mainframes using perl

I'm trying to do an FTP GET a file from mainframe to Linux.
I have a perl daemon on Linux which issues the follwing commands-

my $ftp=Net::FTP->new($MVSADDR,Timeout=>1800,Debug=>1);

my $olddir = getcwd();
chdir(makedir()) or $ftp=0;

$ftp->login($MVSUSER,$MVSPASS);

$ftp->binary;
$ftp->pasv();

$ftp->get(remote file,localfile);

$ftp->quit;


and I get the follwing messages from FTP server:

220-FTPD1 IBM FTP CS V1R7 at IMSJES2.us.rxcorp.com, 21:48:41 on 2006-06-29.
220 Connection will close if idle for more than 15 minutes.
user xxxxxxx
331 Send password please.
PASS ....
230 xxxxxxx is logged on. Working directory is "xxxxxxx.".
TYPE I
200 Representation type is Image
PASV
227 Entering Passive Mode (162,44,231,228,7,34)
PORT 162,44,231,235,159,195
200 Port request OK.
RETR 'G1ZIP01.TST.ET770056.FILE001.SPLIT001'
125 Sending data set G1ZIP01.TST.ET770056.FILE001.SPLIT001
250 Transfer completed successfully.

QUIT
221 Quit command received. Goodbye.

The above script downloads a file of 200 bytes correctly.

However a 50 MB or more file is downloaded as a zero byte file and a successful transfer message is received.

When I manually try to do the ftp for 300 MB file, it downloads correctly in 40 seconds.

Why does the script download a zero byte file?
What do I need to do to have the complete file transferred correctly-whatever the size!!

-Please help.

Pedro
pedro is offline   Reply With Quote


Old 4 Days Ago   #2 (permalink)
KarrieTamsin
Junior Member
 
Join Date: Nov 2008
Posts: 10
Default Any engage in some soups?

I set up a uncut sort of soups that valid grand, and can be made in big batches and frozen.
Is there any interest?
KarrieTamsin is offline   Reply With Quote

Reply

« What Is Perl 6? | - »


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UIMA SDK v 1.4.1 – Supports Perl and TCL gabriel JavaScript 1 10-12-2006 02:49 AM
Perl and C++ jeremiah Perl 1 07-23-2006 07:37 PM
How to run a javascript then trigger perl hailey Perl 2 07-23-2006 06:41 PM
Perl DBD::Oracle andrew Perl 0 07-12-2006 05:52 PM
FTP GET for files from mainframes using perl chase Perl 0 07-02-2006 03:11 PM


footer left
All times are GMT. The time now is 08:11 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Per Insurance | Share Prices | Credit Cards | Remortgaging | Pacotes TurĂ­sticos

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49