Re: Getting error in Net::SFTP with get function



On 10/31/07, kilaru rajeev <kilarurajeev@xxxxxxxxx> wrote:
Hi All,

I have the following code as part of my program;

print "---=========> $file, $localFile\n";
$sftp -> get( $file, $localFile ) || warn("errrrr0rrrrr
_---> $!".$sftp->status."\n");^M

Even though it has downloaded the file properly, it is giving the following
message:

---=========> /trading/tiscrdenhlist10310000.txt.old,
/export/home/crdadm/rajeev/tiscrdenhlist10310000.txt
errrrr0rrrrr _---> 0


Please let me know why it is give the error message.


Rajeev,

Take another look at the Net::SFTP docs, particularly the note about
what get() does when called in a void context. Use $sftp->status, not
the return value of get(), to check for errors.

Best,

-- jay
--------------------------------------------------
This email and attachment(s): [ ] blogable; [ x ] ask first; [ ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org

values of β will give rise to dom!


Relevant Pages

  • Re: ReferencError: Parent is not defined
    ... > and the error message is: ... Please quote the minimum of what you are replying to and provide attribution ... then you will have to find other means in the DOM of the SVG context ...
    (comp.lang.javascript)
  • PHP 5 & DomXpath
    ... $dom = new domDocument; ... $xpath = new domXPath; ... I get the following error message on the last line: ...
    (alt.php)
  • PHP 5 & DomXpath
    ... $dom = new domDocument; ... $xpath = new domXPath; ... I get the following error message on the last line: ...
    (comp.lang.php)
  • Re: input stream 101
    ... > error message ("malformed URL ... ... Right now I'm kinda reading and thinking about XML, SAX, DOM, JDOM, the ... after some rapid progress. ...
    (comp.lang.java.help)
  • Re: Is this correct in perl?
    ... private and confidential ... values of β will give rise to dom! ...
    (perl.beginners)