Linux Today: Linux News On Internet Time.

Names Pipes... or how to get two separate applications to interact

Jun 30, 2009, 07:32 (0 Talkback[s])
(Other stories by Edmundo Carmona)

[ Thanks to Edmundo for this link. ]

"Great. However, I didn't' want to connect to a host with one openSSH service. I had to connect to a router (a HW router, so to speak) that, whenever I sent it more than one command, would break my connection.

"After several tries and experiments, I thought about creating one application that would use the ssh client to send commands to the router and get the output of the ssh client. It would wait for the router's prompt to show up before sending another command. Now, that would require not only getting the output of the ssh client, as that is a piece of cake:

$ ssh user@host | ./ssh_handler"

Complete Story

Related Stories: