next up previous
Next: String expression of objects Up: How to start a Previous: Negotiation of the byte

An example of launcher : ox

ox, included in OpenXM/src/kxx, is a launcher to invoke an engine. After invoking an engine, it acts as a control server. By default ox requires a one time password. To skip it, use -insecure option. A one time password is a null-terminated byte sequence and a client informs both a control server and an engine of byte sequences as one time passwords.

ox is created from oxmain.c and kan96xx/plugin/oxmisc.c. In ox
oxTellMyByteOrder() executes the exchange of the byte order information. In a client it is done in oxSetByteOrder().

One time passwords should be sent via secure communication channels. Note that in the current implementation of ox, one time passwords are visible to all users logging in machines on which the server and the client run, assuming that there is no evil person among the users. One may use ssh with -f option when one wants to send a one time password securely to a remote machine.

The following example shows invocation of an ox_sm1 server and the communication establishment on sm1. In this example ox on the host dc1 is invoked from sm1 on the host yama.

yama% sm1
sm1>(ox.sm1) run ;
ox.sm1, --- open sm1 protocol module 10/1,1999  (C) N.Takayama. oxhelp for help
sm1>[(dc1.math.kobe-u.ac.jp) (taka)] sm1connectr-ssh /ox.ccc set ;
Hello from open. serverName is yama.math.kobe-u.ac.jp and portnumber is 0
Done the initialization. port =1024
Hello from open. serverName is yama.math.kobe-u.ac.jp and portnumber is 0
Done the initialization. port =1025
[    4 , 1025 , 3 , 1024 ] 
Executing the command : ssh -f dc1.math.kobe-u.ac.jp -l taka 
"/home/taka/OpenXM/bin/oxlog /usr/X11R6/bin/xterm -icon 
-e /home/taka/OpenXM/bin/ox -reverse -ox /home/taka/OpenXM/bin/ox_sm1 
-host yama.math.kobe-u.ac.jp -data 1025 -control 1024 -pass 518158401   "
[ 
taka@dc1.math.kobe-u.ac.jp's password: 
Trying to accept... Accepted.
Trying to accept... Accepted.

Control port 1024 : Connected.

Stream port 1025 : Connected.
Byte order for control process is network byte order.
Byte order for engine process is network byte order.


next up previous
Next: String expression of objects Up: How to start a Previous: Negotiation of the byte
Nobuki Takayama 平成12年4月13日