in reply to Facing Issue with Net::SFTP

Error I'm getting for put and get operations are as follows Put--->Couldn't get handle: Get---->Couldn't stat remote file I verified connectivity and file transfer between the servers using linux script with same creditals.It is working fine ,but with Perl it is failing.Please give me some suggestions.

Replies are listed 'Best First'.
Re^2: Facing Issue with Net::SFTP
by adarsh g u (Initiate) on Feb 05, 2020 at 04:25 UTC
    Thank you monks!Issue is resolved. The above code is working when i tried file transfer between two linux systems. Unfortunately a remote test server was a windows one and the below code fails. $sftp->put("helloabc.txt", "helloabc.txt"); I have modified the code as below and it started working. $sftp->put("helloabc.txt", "/D/helloabc.txt");