Hi,
For the given code, SFTP get connected. But, File is not transfered,
It is throwing error as
1. Couldn't get handle: Failure at C:/perl/site/lib/Net/SFTP.pm line 165.
2. Couldn't write to remote file: Failure at C:/perl/site/lib/Net/SFTP.pm line 259.
3. Couldn't close file: Failure at C:/perl/site/lib/Net/SFTP.pm line 199.
-------------------------------start code--------------------------------------------------
$ssh =Net::SFTP->new($ip,%args) or die "Cannot connect to Host: $ip: $@";
my $puthandle=$ssh->put($local,$remote);
-------------------------------end code-----------------------------------------------------
Debug message as attached
<<debug.txt>>
O/S : Windows
Perl version :5.6.0
regards
Srinivas
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com |
pciib06397: sftp: Sent SSH2_FXP_OPEN I:1 P:C:/file.txt IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113 IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119
Couldn't get handle: Failure at C:/perl/site/lib/Net/SFTP.pm line 165. pciib06397: sftp: Sent message SSH2_FXP_WRITE I:2 O:0 IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113 IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119 Couldn't write to remote file: Failure at C:/perl/site/lib/Net/SFTP.pm line 259. pciib06397: sftp: Sent message T:4 I:3 IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113 IO::Socket::INET at C:/perl/site/lib/Net/SSH/Perl/SSH2.pm line 295 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 113 IO::String at C:/perl/site/lib/Net/SSH/Perl/Channel.pm line 119 Couldn't close file: Failure at C:/perl/site/lib/Net/SFTP.pm line 199.
_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs