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:
you will a prompt similar to:
telnet localhost 8008
The scripting server supports session variables:
Welcome to ST/X (Type ~? for help)
> println("Hello world");
Hello world
> WorkspaceApplication.open();
>
...
>~.
Lost Connection.
> var app;
> app = new WorkspaceApplication;
> app.open();
...
> app.paste("100 factorial");
> app.selectAll();
> app.printIt();
...
> app.close();
>~.
Lost Connection.
Copyright © 2009 eXept Software AG
<info@exept.de>