[BACK]Return to ox-win.sm1 CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / Doc

Annotation of OpenXM/src/kan96xx/Doc/ox-win.sm1, Revision 1.7

1.7     ! takayama    1: %%%%%%%%%%%  $OpenXM: OpenXM/src/kan96xx/Doc/ox-win.sm1,v 1.6 2001/08/12 03:13:35 takayama Exp $
        !             2: 
        !             3: [(parse) (ox.sm1) pushfile] extension pop
        !             4: 
        !             5: $ox-win.sm1, ---OpenXM protocol module for Microsoft Windows 08/22, 2001  (C) N.Takayama.$ message-quiet
        !             6: 
1.1       takayama    7: %%%%%%%%%%%% Configuration: Specify your server path
                      8: %%%%% ox, ox_sm1, oxlog are contained in kxx.tgz
                      9: %%%%% These should be under /usr/local/lib/sm1 or LOAD_SM1_PATH
1.5       takayama   10: 
                     11: %% This variable is used in sm1connectr_win
                     12: %% It should be set, for example, to c:/cygwin/home/nobuki/OpenXM
                     13: %% See  kan96xx/win/websm1.bat
1.4       takayama   14: [(getenv) (OPENXMHOMEWIN)] extension
                     15: /OpenXM_HOME_WIN set
1.6       takayama   16: OpenXM_HOME_WIN tag 0 eq {
                     17:   [(getenv) (OpenXM_HOME)] extension
                     18:   /OpenXM_HOME_WIN set
                     19: } { } ifelse
1.5       takayama   20: 
                     21: %% This is used in asirconnectr_win
                     22: /OX_LAUNCH (c:\home\asir\bin\ox_launch.exe) def
                     23: %%%%%%%%%%%%%%% end configuration  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1.4       takayama   24: 
1.1       takayama   25: /oxpath.ox (bin/ox.exe) def
                     26: /oxpath.oxsm1 (bin/ox_sm1.exe) def
                     27: /oxpath.oxlog (bin/oxlog.exe) def
                     28: /oxpath.xterm (start ) def
                     29: /oxpath.null  (  ) def
                     30: /oxpath.null00  ( >& /dev/null ) def  %%cf. oxNoX
                     31: /oxpath.null00-pure-sh ( 2>&1 >/dev/null) def %%TODO:It does not work in our case
1.4       takayama   32: 
                     33: /sm1connectr_win {
                     34:  [/in-sm1connectr /pass /peer /data /control ] pushVariables
                     35:  [
                     36:  /pass [(oxGenPass)] extension def
                     37:  /peer [(oxGetPort) (localhost)] extension def
                     38:  /data peer 1 get toString def
                     39:  /control peer 3 get toString def
                     40:  peer message
                     41:  [(forkExec) [
                     42:     (c:/windows/command/start)
                     43:     [OpenXM_HOME_WIN  (/bin/ox)] cat
                     44:     (-reverse)
                     45:     (-ox)
                     46:     [OpenXM_HOME_WIN (/bin/ox_sm1.exe)] cat
                     47:     (-data)
                     48:      data
                     49:      (-control)
                     50:      control
                     51:      (-pass)
                     52:      pass
                     53:   ]
                     54:   [  ] 3] extension
                     55: 
1.2       takayama   56:  [(oxCreateClient2) peer 0 pass] extension /ox.ccc set
                     57:                      %% 0 means connect from only localhost. 
                     58:  (The server is binded to the variable ox.ccc) message
                     59:   ox.ccc.init 
                     60:  ] pop
                     61:  popVariables
                     62: } def
                     63: 
1.5       takayama   64: /asirconnectr_win {
1.2       takayama   65:  [/in-sm1connectr /pass /peer /data /control ] pushVariables
                     66:  [
1.5       takayama   67:  /pass [ ] cat def  %% Do not use one time password.
1.2       takayama   68:  /peer [(oxGetPort) (localhost)] extension def
                     69:  /data peer 1 get toString def
                     70:  /control peer 3 get toString def
                     71:  peer message
1.5       takayama   72:  [control data] message
                     73:  [(forkExec)
                     74:   [OX_LAUNCH
                     75:    (ox_launch)
                     76:    (localhost)
                     77:    (0)
                     78:    control toString
                     79:    data toString
                     80:    (ox_asir)
                     81:    (1)
                     82:   ]
                     83:   [ ]
                     84:   7 %% 1 1 1
                     85:  ] extension ;
                     86:  [(oxCreateClient2) peer 0 pass] extension /oxasir.ccc set
1.1       takayama   87:                      %% 0 means connect from only localhost. 
1.5       takayama   88:  (The server is binded to the variable oxasir.ccc) message
                     89:   %% Initialization code for asir.
1.1       takayama   90:  ] pop
                     91:  popVariables
                     92: } def
                     93: 
                     94: initializePathNamesForOx  %% This should be 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>