Try using CRLF as the line terminator:
Note also, that capture may return some content even when an error is signaled and getting the error OSSH_SLAVE_CMD_FAILED may be non fatal.my @output = $ssh->capture({stdin_data => "@cmd\r\n@quitcmd\r\n"});
In reply to Re^5: How to solve Pseudo terminal issue OpenSSH
by salva
in thread How to solve Pseudo terminal issue OpenSSH
by waytoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |