Hello,
The code snippet I have a question about is this one:
my $ssh2 = Net::SSH2->new();
$ssh2->connect($sourceServer) or die ("Unable to connect");
$ssh2->auth_keyboard('user', 'password') or die ("Unable to login");
$ssh2->scp_get($sourceFileName);
$ssh2->disconnect();
I am using Net::SSH2. The problem is that the scp_get call hangs indefinitely. I am trying to download a 15MB file. It seems it gets stuck after about 12-13MB. Interesting is that if I repeat the experiment, it seems to stop at the same file size, for a while, then it seems to stick to that new value for another while, and so on. Anyway, it doesn't make any progress past that point (not even a crash with or without an error message).
I have the similar scp_put call that uploads that file and that upload works like a charm every time. Not a single problem. On the flip side, the download call I pasted did not work even once.
I'd appreciate some help to get past this problem, if anybody knows the way out.
Thanks,
Radu
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.