[GOODIE] REPLServer

Avi Bryant avi at beta4.com
Thu Jul 18 09:46:18 UTC 2002


Now that Ian's given us terminal access from Squeak, this was the logical
next step: Squeak access from the terminal.  A quick sample:

  "REPLServer startOn: 8087"

  [avi at yukon avi]$ telnet localhost 8087
  Trying 127.0.0.1...
  Connected to yukon (127.0.0.1).
  Escape character is '^]'.
  Password: eek!
  >>> 1+1
  2
  >>> 1+
        ^^^ Argument expected
  nil
  >>> 3 timesRepeat: [Transcript show: 'foo']
  foofoofoo3
  >>> 1 size
  Error: SmallIntegers are not indexable (1)
  >>> 1 fooz
        ^^^^ Error: Compilation error (a REPLServer)
  >>> exit

I've just hacked this out tonight and it's late, so caveat squeaker and
all that, but this might at least help out those of you running headless
swiki or seaside servers.  Future, better, slicker versions will be
maintained in the seaside.sourceforge.net CVS repository.

Requires Comanche (or at least ConnectionHandler and SocketStream).
Suggestions welcomed.

Cheers,
Avi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: REPLServer.st
Type: application/octet-stream
Size: 3793 bytes
Desc: 
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020718/8ba19d3d/REPLServer.obj


More information about the Squeak-dev mailing list