[prev] [up] [next]

Remote Scripting Service

Overview

The remote scripting service allows for stx to be remote controlled. It consists of a server (on the smalltalk side), similar to the --scripting" argument, passing the port-number on which the scripting service should await incoming requests:
    stx --scripting 8008
By default, the script port only accepts connections from the local host. Using the "--allowHost" option, more hosts can be gained access to the scripting port:
    stx --scripting 8008 --allowHost myHostName
Alternatively, you can start a scripting service from your Smalltalk program by evaluating:
    STXScriptingServer startAt:8008
or via the Launchers settings dialog.

Then, on any allowed host, start a session via telnet:

    telnet localhost 8008
you will a prompt similar to:
    Welcome to ST/X (Type ~? for help)
    > println("Hello world");
    Hello world
    > WorkspaceApplication.open();
    >
    ...
    >~.

    Lost Connection.
The scripting server supports session variables:
    > var app;
    > app = new WorkspaceApplication;
    > app.open();
    ...
    > app.paste("100 factorial");
    > app.selectAll();
    > app.printIt();
    ...
    > app.close();
    >~.

    Lost Connection.

No Warranty

This goody is provided AS-IS without any warranty whatsoever.

Origin/Authors


Author: Claus Gittinger


Copyright © 2009 eXept Software AG

<info@exept.de>

Doc $Revision: 1.5 $