[racket] looking for a simple ssh library.

From: Tony Garnock-Jones (tonyg at ccs.neu.edu)
Date: Thu Feb 28 17:20:34 EST 2013

On 2013-02-28 5:09 PM, jo wrote:
> bidirectional pipe to ssh is needed to achieve this, it is more than
> just launching ssh commands.

You might have some luck using (process) from racket/system to get input
and output ports to the remote process, combined with using (sync) to
get the nonblocking behaviour.

For example:

 (match-define (list from-remote
                     to-remote
                     pid
                     error-from-remote
                     control-remote)
    (process (string-append "ssh -tt "machine" '"command"'")))

gives you stdin, stdout and stderr ports for communicating with the
remote process.

Tony

Posted on the users mailing list.