in reply to Re^10: Problem using Net::OpenSSH->capture to su to another user
in thread Problem using Net::OpenSSH->capture to su to another user

It seems you are not using the latest stable version of the module (0.62). Update it.

Also, include the full debugging output, not just an excerpt.

  • Comment on Re^11: Problem using Net::OpenSSH->capture to su to another user

Replies are listed 'Best First'.
Re^12: Problem using Net::OpenSSH->capture to su to another user
by Anonymous Monk on Jul 01, 2014 at 20:00 UTC
    I tried with the 0.62 version and also got "Killed by signal 1.". Noticed that if a single command for system, capture or capture2, I don't get the error. But will get error when I run $ssh->system({tty=>1},@cmd) more than one time against same host. "Killed by signal 1." will happen on the last $ssh->system(@cmd) or capture(@cmd) or capture2(@cmd)
      It is difficult to see what's going wrong without the source code and the full debugging dump.
      I followed the examples in the synopsis and don't see the "Killed by signal 1" any more. Appreciate the responses.