rinaldi has asked for the wisdom of the Perl Monks concerning the following question:
I have a remote phone system which I have access to via ssh on a non standard port. I ssh to the port on the host and I am logged in with an application starting up. At this point, I can execute commands.
What I'm trying to do submit commands to the running application on the remote connection. I tried executing the commands via ssh however this isn't working as it terminates the connection.
I was wondering if anyone else has run into something similar regarding the need to pass commands into an existing ssh connection?
Re: Executing commands in an SSH session
by LanX (Saint) on Nov 06, 2013 at 00:07 UTC
|
> I'm trying to do submit commands to the running application on the remote connection. I tried executing the commands via ssh however this isn't working as it terminates the connection.
how? plz show your Perl code...
edit
There are plenty of SSH modules on CPAN, which one do you use?
Cheers Rolf
( addicted to the Perl Programming Language)
| [reply] |
Re: Executing commands in an SSH session
by Happy-the-monk (Canon) on Nov 06, 2013 at 09:10 UTC
|
I was wondering if anyone else has run into something similar regarding the need to pass commands into an existing ssh connection?
Does it help if I say, "yes", it has happened to me?
The ssh connection has timed out (configuration/keep-alive) or was disconnected due to network events.
Maybe you want to show us some more detail?
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
| [reply] |
|