dear all

i have a code to tranfer file between two linux machines using sftp

for that i used "use Net::SFTP", but it is giving error saying "Can't locate Net.SFTP.pm [EMAIL PROTECTED]
(@INC contains /usr/lib/perl5/5.6.0/1386-Linux......) at shh3.pl linux.."
how should i go and fix the problem


My code :
'

#!/usr/bin/perl -w

use strict;
use Net::SFTP;
my$sftp=undef;

eval
{
$SFTP=Net::SFTP->new("192.168.255.214",user=>"vishal",password=>"hamara");};


if($@)
{
print"connection failed ";
}
else
{
print "suuccessful";
}

$sftp->get("krishna","rama");

#-END-


please help me in this regards


Regards

Uday

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


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



Reply via email to