MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File Transfer using PERL.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
bvsbabu
Beginner


Joined: 30 Dec 2003
Posts: 2
Topics: 1

PostPosted: Tue Dec 30, 2003 4:19 am    Post subject: File Transfer using PERL. Reply with quote

Hello,
Please help me in transferring a file from One Server to another server using PERL. I used the following script code to transfer.. but it is not working and throwing the following information...

Code:
my $FTP_Host = "it15247";
my $New_Src_File ="test.txt";
my $Target_File = "test1.txt";
my $FTP_Log_File = "test.txt";

my $FTP_Cmd = sprintf ("echo \"open %s\n %s\n %s\n verbose\n ascii \n site Lrecl=255 Recfm=FBA BlockSize=0 PRI=300 CY SEC=20 CY\n put %s %s\n verbose\n quit\"| ftp \n", $FTP_Host, "userid","pwss",$New_Src_File, $Target_File);
print "$FTP_Cmd";
print " End of the Command \n";
system($FTP_Cmd);


Login incorrect.
Login failed.
?Invalid command
Verbose mode on.
200 Type set to A.
?Invalid command
530 Please login with USER and PASS.
530 Please login with USER and PASS.
Verbose mode off.

Please do the need ful.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Dec 30, 2003 8:07 am    Post subject: Reply with quote

bvsbabu,


This board is specifically for questions related to mainframe and its related products. My knowledge in perl is very poor and I really cannot help.

But looking at the error messages it is evident that you are login failed. check this link for FTP manual

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B910/CCONTENTS

Thanks,

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group