By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,834 Members | 1,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,834 IT Pros & Developers. It's quick & easy.

About Ftp

P: 4
Hi ,

I am new to "perl" ,i want some basic information how to transfer the files from one synstem to other system.Using ftp.

I wanted you to ask that i need to run the FTP server in both the systems.

Please reply to this i need it urgently...

Thank you
Shyam
Mar 28 '08 #1
Share this Question
Share on Google+
2 Replies


nithinpes
Expert 100+
P: 410
Hi ,

I am new to "perl" ,i want some basic information how to transfer the files from one synstem to other system.Using ftp.

I wanted you to ask that i need to run the FTP server in both the systems.

Please reply to this i need it urgently...

Thank you
Shyam

You can make use of Net::FTP module.
Mar 28 '08 #2

P: 4
You can make use of Net::FTP module.
I am using the following code but iam unable to connect to the IP address.

I am unable to understand what is going wrong....
Expand|Select|Wrap|Line Numbers
  1. use Net::FTP;
  2.  
  3.     $ftp = Net::FTP->new('192.168.1.86')
  4.       or die "Cannot connect to 192.168.1.86: $@";
  5.  
  6.     $ftp->login("santoshc",'sanju123')
  7.       or die "Cannot login ", $ftp->conncted;
  8.  
  9.     $ftp->cwd("D:\Eperl")
  10.       or die "Cannot change working directory ", $ftp->message;
  11.  
  12.     $ftp->get("first.rtf")
  13.       or die "get failed ", $ftp->no file found;
  14.  
  15.     $ftp->quit;
Mar 28 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.