Re: SFTP Doubts

[email protected] ("Chas. Owens")
Newsgroups perl.beginners
Message-ID <[email protected]>
On Tue, May 27, 2008 at 9:29 AM, Rajnikant
<[email protected]> wrote:
snip
> if(!($sftp->get($remoteFilename,$localFilename)) )
> {
>     my $err = $sftp->status();
>     print (" Get failed ");
> }
>
> What might be the reason behind this method failure?
snip

Any number of things.  You might try looking at the return of $sftp->status:

$sftp->get($remoteFilename,$localFilename) or warn $sftp->status();

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.