Subject: | error while put using Net SFTP Foreign |
Date: | Thu, 10 Jul 2014 09:27:00 +0000 |
To: | <bug-Net-SFTP-Foreign [...] rt.cpan.org> |
From: | <Sachin-12.Kulkarni-12 [...] cognizant.com> |
Hi,
We are receiving error while putting file on server, using Net::SFTP::Foreign client.
Actual error:
Failed to put: Couldn't setstat remote file (setstat)': This server does not support operations to modify file attributes
I have applied attribute copy_time => 0, as below in our code:
if (!$sftp->put($client_params{ftp_output_file}, $new_file_name, copy_perm=>0, copy_time => 0))
Now the file is transferred but with 0 bytes. No data is transferred.
Our versions are:
[542]:uname -a
Linux wsx-stage-vm-cltfiles-1 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Dec 13 06:58:20 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
[543]:cpan -v
CPAN: File::HomeDir loaded ok (v0.99)
/usr/local/perl/bin/cpan script version 1.5701, CPAN.pm version 1.9800
[544]:perl -v
This is perl, v5.10.1 (*) built for x86_64-linux
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
I read on net, that this problem is already resolved. But, we are facing the issues.
Can someone look into this?
Regards,
Sachin Ashok Kulkarni.
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(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.