in reply to Net::SSH::Perl - Breaking out of a running command?

Just an idea: can you wrap the remote command in a script on the remote side that does what you want?

As for your other solution, I can't seem to find any documentation on break_client_loop, so I'm not sure if using an undocumented method is the most portable / robust solution.

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl - Breaking out of a running command?
by cmv (Chaplain) on Aug 07, 2014 at 14:07 UTC
    Thanks for the help!

    I'm not sure what I can do on the remote side to break me out of a running command. It seems like what I WANT to do is to control the SSH2 channels from my client side perl script.

    Controlling SSH2 channels seems to be the intent of the software (documented in Net::SSH::Perl::ChannelMgr) but a lot of stuff that should be documented, isn't (like the break_client_loop call, as you pointed out).

    I'm getting farther in understanding the guts of these modules. Hopefully I'll be able to get it right soon.