SFTP error..

SFTP error..

am 08.03.2006 08:47:00 von Vamsi_Doddapaneni

=20

Hi All,

Thank you all for your earlier help.

I have a problem with SFTP

Though if I use FTp to get a file from other server, the FTP is
completing successfully,
But I need to work with SFTP,use Net::SFTP;

Here after connecting to the other server , iam using get function....
my $sftp =3D Net::SFTP->new($hostname, %connect_params)
or die "Cannot SFTP to host $hostname: $@";
$sftp->get("$remote_path/$remote_file", "./$remote_file") or die "Cannot
retrieve remote file $remote_path/$remote_file: ";


The problem is though the SFTP is copying the exact file from the other
server , its not exiting with return status as 1( i.e success)


Any help is appreciated


Thanks,
Vamsi


DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.

Re: SFTP error..

am 08.03.2006 09:09:29 von jonathan.leffler

------=_Part_1306_19234791.1141805369539
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 3/7/06, Vamsi_Doddapaneni wrote:

> I have a problem with SFTP
>

It looks as though the first problem is that you forgot to write:

use DBI;

--
Jonathan Leffler #include
Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
"I don't suffer from insanity - I enjoy every minute of it."

------=_Part_1306_19234791.1141805369539--