hi all

i have got a code for file transger between two linux systems through ssh
here is the code


#!usr/bin/perl
use Net::SSH qw(sshopen2);

my $user="username";
my $host="hostname";
my $cmd="commanad";

sshopen2("[EMAIL PROTECTED]",*REAEDR,*WRITER,"$cmd") or die "ssh :$!";

while(<READER>)
{
        chomp();
        print "$_\n";
}
close(READER);
close(WRITER);

In the above code, how to write th commanf $cmd. is it by using get or put.
what is *READER and *WRITER.
AND FROM WHERE THE SYSTEM IS GOING TO GET THE PASSWORD
please help me in this regard..



with regards uday

___________________________________________________
Click below to experience Sooraj R Barjatya's latest offering
'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek
 & Kareena http://www.mpkdh.com


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to