Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

On file sending

Question posted by: sasimca007 (Member) on May 9th, 2008 01:54 PM
Hello friends,
Generally when some systems are in LAN we can pass some files from one computer to another through some commands on command propmt. But through perl programming how is it possible?
For example, in ubuntu we type as following
scp /home/sasi/logo.gif <hostusername>@<host ip>:~
then it asks for the password and after giving correct password it will pass that file to that user.
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
numberwhun's Avatar
numberwhun
Forum Leader
1,799 Posts
May 19th, 2008
11:45 PM
#2

Re: On file sending
Quote:
Originally Posted by sasimca007
Hello friends,
Generally when some systems are in LAN we can pass some files from one computer to another through some commands on command propmt. But through perl programming how is it possible?
For example, in ubuntu we type as following
scp /home/sasi/logo.gif <hostusername>@<host ip>:~
then it asks for the password and after giving correct password it will pass that file to that user.


Perl has a number of modules that provide the interfaces you need to do things like scp, ftp, etc. Why not pay a visit to CPAN and see if one of them works for you.

Once you have found a module, produce some Perl code and try to get it working. If you get stuck, then post the code here (in code tags) and we will help you.

Regards,

Jeff

Reply
Reply
Not the answer you were looking for? Post your question . . .
174,855 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Perl Forum Contributors