[Twisted-Python] Re: Running commands (ssh) from a GUI client

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Thu Oct 11 07:30:53 MDT 2007


I will allow myself to add to the question:

Does there exist any example of SSH connection which instead of just
running a command, allows interaction with remote application (feeding
its stdin, reading its stdout)?

My personal use case is 'remote UCI engine' - application which logins
via ssh to remote machine, spawns fruit (or wine rybka.exe, or
whatever) there, and then forwards anything obtained on (local) stdin
to this app stdin and forwards anything obtained from remote app to
(local) stdout. Plus, in case of disconnect, relogin-s, restarts the
app and resends initialization commands.  Just a way to bind Fritz run
on laptop to the engine run on stronger server.

I even managed to write more-or-less working code, but it turned out
to be so horrible mess, that I gave up an idea of maintaining it in a
long term...





More information about the Twisted-Python mailing list