hi all
have run this simple code , which is nothing but file transfer using SFTP between two linux systems
#!usr/bin/perl
Add these lines, trust you will be glad you did use strict; use warnings;
Let them stay as long as you are developing and testing your code
use Net::SFTP: my $sftp=Net::sftp->new("xxx.xxx.xxx.xxx");
Shouldn't this be Net::SFTP->new(...);
Make sure to check the successful creation of the Net::SFTP object like this my $sftp = Net::SFTP->new (".....") or die "error handling";
and i got the error as "permission denies at /usr/lib/perl5/site_perl/5.60/Net/SFTO.pm
Which line are you getting this error in?
but if i execute the above code without the last line , it is giving no error
What is the last line? Can you post your code if it is not too big?
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]