$server_info
$server_info prints information about the Object Manager's server. With this information, you can allow another process to connect to this server process either by setting environment variables or by using the -client command-line option. The environment variables are:
This specifies the local socket id for the server process.
This specifies the socket id to use for remote connections.
This specifies the id of the root object to use.
You start up AVS/Express from one window:
% express
OM(SingleWindowApp) -> };
OM(Root) -> SingleWindowApp {
OM(SingleWindowApp) -> int x = 4;
OM(SingleWindowApp) -> $server_info
OM_BOSS=unix /tmp/usock19655 brutus
OM_BOSS_2=tcp 1886 192.138.253.110
OM_ROOT_OBJ=1076810496:0
From another window, you set environment variables and start up AVS/Express. AVS/Express uses the other AVS/Express' server, as you can verify by accessing variable x:
% setenv OM_BOSS "unix /tmp/usock19655 brutus"
% setenv OM_BOSS_2 "tcp 1886 192.138.253.110"
% setenv OM_ROOT_OBJ "1076810496:0"
% express -vcp
OM(Root) -> SingleWindowApp {
OM warning: jumping from: Root to Root.Applications.SingleWindowApp
OM(SingleWindowApp) -> $int x
4
OM(SingleWindowApp) -> x = 10;
You can verify that the first AVS/Express has the new value of x:
OM(SingleWindowApp) -> $int x
10
You can also use the command: "$server_info > /tmp/server_file" and then use the option "-client /tmp/server_file" with the other process.