[gambit-list] Gambit remote access tool

Marc Feeley feeley at iro.umontreal.ca
Fri Jan 15 11:20:00 EST 2010


On 2010-01-12, at 5:10 PM, Mikael More wrote:

> James,
> 
> I want a server that is for Gambit what SSH/Telnet is for the Unix shell: I want
> 
>  (1) To be able to get a REPL that's not clogged with the debug output that goes to the gambit-global console
>  (2) To be able to get several REPL:s where to perform work in separate, for instance made by two different persons
> 
> ..And get history support in this (terminal niceties).

Here's my solution.  You need these 2 files:

   serve-gsi-repl.scm    ; the code which registers a REPL server on port 9000

   start-gsi-repl        ; a shell script which starts a new REPL by contacting
                         ; the server on port 9000

You'll have to start Gambit like this

  gsi serve-gsi-repl.scm -

or just put (load "serve-gsi-repl.scm") in your .gambcini.scm file.

Then to start a new REPL, just execute the shell script.  Note that you can do this remotely with ssh:

   ssh foobar ./start-gsi-repl

Let me know if you encounter problems.  Note: don't execute gsi under emacs otherwise the line-editing features will be disabled.  Moreover, the shell script uses the "nc" utility program, so it has to be installed.  I tested this on Mac OS X... it probably works on Linux, and probably not on Windows unless cygwin is installed.

Marc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: serve-gsi-repl.scm
Type: application/octet-stream
Size: 549 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20100115/c95e127a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: start-gsi-repl
Type: application/octet-stream
Size: 343 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20100115/c95e127a/attachment-0001.obj>


More information about the Gambit-list mailing list