Annotation of OpenXM/src/kan96xx/Doc/ox-win.sm1, Revision 1.12
1.12 ! takayama 1: %%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox-win.sm1,v 1.11 2001/12/28 08:09:38 takayama Exp $
1.7 takayama 2:
1.9 takayama 3: /ox-win.sm1.loaded 1 def
1.10 takayama 4: (ox.sm1.loaded) boundp {
1.9 takayama 5: }{
6: [(parse) (ox.sm1) pushfile] extension pop
7: } ifelse
1.7 takayama 8:
9: $ox-win.sm1, ---OpenXM protocol module for Microsoft Windows 08/22, 2001 (C) N.Takayama.$ message-quiet
10:
1.1 takayama 11: %%%%%%%%%%%% Configuration: Specify your server path
12: %%%%% ox, ox_sm1, oxlog are contained in kxx.tgz
13: %%%%% These should be under /usr/local/lib/sm1 or LOAD_SM1_PATH
1.5 takayama 14:
15: %% This variable is used in sm1connectr_win
16: %% It should be set, for example, to c:/cygwin/home/nobuki/OpenXM
17: %% See kan96xx/win/websm1.bat
1.4 takayama 18: [(getenv) (OPENXMHOMEWIN)] extension
19: /OpenXM_HOME_WIN set
1.6 takayama 20: OpenXM_HOME_WIN tag 0 eq {
21: [(getenv) (OpenXM_HOME)] extension
22: /OpenXM_HOME_WIN set
23: } { } ifelse
1.5 takayama 24:
25: %% This is used in asirconnectr_win
26: /OX_LAUNCH (c:\home\asir\bin\ox_launch.exe) def
27: %%%%%%%%%%%%%%% end configuration %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1.1 takayama 28: /oxpath.ox (bin/ox.exe) def
29: /oxpath.oxsm1 (bin/ox_sm1.exe) def
30: /oxpath.oxlog (bin/oxlog.exe) def
31: /oxpath.xterm (start ) def
32: /oxpath.null ( ) def
33: /oxpath.null00 ( >& /dev/null ) def %%cf. oxNoX
34: /oxpath.null00-pure-sh ( 2>&1 >/dev/null) def %%TODO:It does not work in our case
1.4 takayama 35:
1.8 takayama 36: /sm1connectr {
1.12 ! takayama 37: [(getenv) (OSTYPE)] extension tag 0 eq {
! 38: sm1connectr_win
! 39: }{
1.9 takayama 40: [(getenv) (OSTYPE)] extension (cygwin) eq
41: {
42: sm1connectr_cygwin
43: }{
44: sm1connectr_win
45: }ifelse
1.12 ! takayama 46: } ifelse
1.9 takayama 47: } def
48:
49: %% For cygwin
50: /sm1connectr_cygwin {
1.8 takayama 51: [/in-sm1connectr /pass /peer /data /control ] pushVariables
52: [
53: /pass [(oxGenPass)] extension def
54: /peer [(oxGetPort) (localhost)] extension def
55: /data peer 1 get toString def
56: /control peer 3 get toString def
57: peer message
58: [(start ox ) ( -reverse -ox ) (/home/nobuki/OpenXM/src/kxx/ox_sm1.exe)
59: ( -data ) data ( -control ) control ( -pass ) pass
1.9 takayama 60: ( -wait 2 )
1.8 takayama 61: oxpath.null
62: ( )] cat system
63: [(oxCreateClient2) peer 0 pass] extension /ox.ccc set
64: %% 0 means connect from only localhost.
65: (The server is binded to the variable ox.ccc) message
66: ox.ccc.init
67: ] pop
68: popVariables
69: } def
70:
1.9 takayama 71: %% For Native windows system
1.4 takayama 72: /sm1connectr_win {
73: [/in-sm1connectr /pass /peer /data /control ] pushVariables
74: [
75: /pass [(oxGenPass)] extension def
76: /peer [(oxGetPort) (localhost)] extension def
77: /data peer 1 get toString def
78: /control peer 3 get toString def
79: peer message
80: [(forkExec) [
81: (c:/windows/command/start)
1.8 takayama 82: [OpenXM_HOME_WIN (\bin\ox)] cat
1.4 takayama 83: (-reverse)
84: (-ox)
1.8 takayama 85: [OpenXM_HOME_WIN (\bin\ox_sm1.exe)] cat
1.4 takayama 86: (-data)
87: data
88: (-control)
89: control
90: (-pass)
91: pass
92: ]
93: [ ] 3] extension
94:
1.2 takayama 95: [(oxCreateClient2) peer 0 pass] extension /ox.ccc set
96: %% 0 means connect from only localhost.
97: (The server is binded to the variable ox.ccc) message
98: ox.ccc.init
99: ] pop
100: popVariables
101: } def
102:
1.9 takayama 103: %% Test
1.11 takayama 104: /asirconnectr_win_test {
1.2 takayama 105: [/in-sm1connectr /pass /peer /data /control ] pushVariables
106: [
1.5 takayama 107: /pass [ ] cat def %% Do not use one time password.
1.2 takayama 108: /peer [(oxGetPort) (localhost)] extension def
109: /data peer 1 get toString def
110: /control peer 3 get toString def
111: peer message
1.5 takayama 112: [control data] message
113: [(forkExec)
114: [OX_LAUNCH
115: (ox_launch)
116: (localhost)
117: (0)
118: control toString
119: data toString
120: (ox_asir)
121: (1)
122: ]
123: [ ]
124: 7 %% 1 1 1
125: ] extension ;
126: [(oxCreateClient2) peer 0 pass] extension /oxasir.ccc set
1.1 takayama 127: %% 0 means connect from only localhost.
1.5 takayama 128: (The server is binded to the variable oxasir.ccc) message
129: %% Initialization code for asir.
1.1 takayama 130: ] pop
131: popVariables
132: } def
133:
1.8 takayama 134: %% Skip it. initializePathNamesForOx
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>