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.
  • micmast
    New Member
    • Mar 2008
    • 144

    #2
    [CODE=perl]
    #!/usr/bin/perl

    $filesending = `scp ....`;

    [/CODE]

    Comment

    Working...