in reply to Re: Net::SSH2::Channel with exec, reads 0 bytes on suse while works fine on ubuntu
in thread Net::SSH2::Channel with exec, reads 0 bytes on suse while works fine on ubuntu

Hi Rob,

1) Yes. Both execute same commands on the same remote machine.

2) Yes. Both run the same version of Net::SSH2

3) Yes. Both have the same libssh2

4) Yes. Both run the same perl 5.10.0

This is the debug output of my script : ------------
libssh2_channel_open_ex(ss->session, pv_channel_type, len_channel_type +, window_size, packet_size, ((void *)0) , 0 ) -> 0x844420c Net::SSH2::Channel::read(size = 8192, ext = 0) - read 0 bytes - read 0 total output is status is 0 Net::SSH2::Channel::DESTROY Net::SSH2::DESTROY object 0x83aaa3c
  • Comment on Re^2: Net::SSH2::Channel with exec, reads 0 bytes on suse while works fine on ubuntu
  • Download Code

Replies are listed 'Best First'.
Re^3: Net::SSH2::Channel with exec, reads 0 bytes on suse while works fine on ubuntu
by syphilis (Archbishop) on Apr 04, 2011 at 04:29 UTC
    Sorry - only other idea I've got is to update the "problem" box to the latest Net::SSH2 and libssh2 (if that's not already the case) and hope that fixes it.

    And just try doing stuff until something happens that makes sense. Do you know if the sent command gets executed on the remote machine ? (I would guess that it does, and that it's only the output that gets lost, but it's something that should be verified.)

    Cheers,
    Rob