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





-----Original Message-----
From: kilaru rajeev <kilarurajeev@xxxxxxxxx>

$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


You may check the document for Net::SFTP and see what's the return true for get() method.
If fetching a file with success and get() return 0, your `get() || warn()` statement will break.
.