Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^11: Perl sftp behavior when there are no files in the share

by soonix (Vicar)
on Apr 06, 2013 at 07:08 UTC ( #1027257=note: print w/ replies, xml ) Need Help??


in reply to Re^10: Perl sftp behavior when there are no files in the share
in thread Perl sftp behavior when there are no files in the share

But the files are transferred and the other print statements are executed?

If I understand Net::SFTP::Foreign correctly, the callback function should be executed at least once per call to ->get.

Maybe it is overwritten too quickly - what if you remove the \r or replace it with \n?


Comment on Re^11: Perl sftp behavior when there are no files in the share
Re^12: Perl sftp behavior when there are no files in the share
by Bindo (Acolyte) on Apr 07, 2013 at 04:12 UTC

    Thanks again Mr Soonix. Yes sir files get downloaded with no problems. Will try what you suggested too and let you know. I think there is a problem with the net:sftp foreign with regard to it's call back feature. May be that is the reason I couldnt find a single person on the net who has gotten it to work.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027257]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-07-04 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls