After trying your line I see the following output.
process_mux_new_session: tcgetattr: Invalid argument
| [reply] |
I don't fully understand what you want to do, so, in order to clarify it, could you post here a capture of the process you want to automate done from a shell?
| [reply] |
Unfortunately I cant post the capture due to security reasons. But let me try to explain what I'm attempting to automate. I need to poll devices on a private network accessed via a jump server. I ssh into the jump server and am given a shell with access to ssh to boxes located on the private network. I would like to make a connection to the jump server which stays open for the life of my script which allows me to log into multiple devices and poll them for various information. Since this polling is redundant on each device I would like to script logging into the devices and collecting their information.
I thought this was going to be easy after making a successful connection to the jump server and being able to run some shell commands and capture the output (ls, date, who...). My problem seems to appear only when ssh'ing to a box from the jump server I cant seem to get past this error message "Pseudo-terminal will not be allocated because stdin is not a terminal".
Need to know how to configure Net::OpenSSH to always appear as a user sitting at a terminal making command line entries.
| [reply] |