On file sending

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sasimca007
    New Member
    • Sep 2007
    • 129

    On file sending

    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.
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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

    Comment

    Working...