version 1.13, 2000/12/05 11:20:26 |
version 1.17, 2001/08/22 03:23:25 |
|
|
%%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox.sm1,v 1.12 2000/12/03 08:19:54 takayama Exp $ |
%%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox.sm1,v 1.16 2001/08/22 02:36:34 takayama Exp $ |
%%%%%%%%%%%% Configuration: Specify your server path |
%%%%%%%%%%%% Configuration: Specify your server path |
%%%%% ox, ox_sm1, oxlog are contained in kxx.tgz |
%%%%% ox, ox_sm1, oxlog are contained in kxx.tgz |
%%%%% These should be under /usr/local/lib/sm1 or LOAD_SM1_PATH |
%%%%% These should be under /usr/local/lib/sm1 or LOAD_SM1_PATH |
Line 53 ox.version [(Version)] system_variable gt |
|
Line 53 ox.version [(Version)] system_variable gt |
|
(Please get it from http://www.math.kobe-u.ac.jp/KAN) message |
(Please get it from http://www.math.kobe-u.ac.jp/KAN) message |
error |
error |
} { } ifelse |
} { } ifelse |
(ox.sm1, --- open sm1 protocol module 11/11,1999 (C) N.Takayama. oxhelp for help) message-quiet |
(ox.sm1, ---OpenXM protocol module 08/22, 2001 (C) N.Takayama. oxhelp for help) message-quiet |
|
|
/ox.ccc load isArray |
/ox.ccc load isArray |
{ } |
{ } |
Line 87 ox.version [(Version)] system_variable gt |
|
Line 87 ox.version [(Version)] system_variable gt |
|
|
|
/SM_control_kill 1024 def |
/SM_control_kill 1024 def |
/SM_control_reset_connection 1030 def |
/SM_control_reset_connection 1030 def |
|
/SM_control_spawn_server 1027 def |
|
|
/Etag_error 257 def |
/Etag_error 257 def |
|
|
|
|
} def |
} def |
|
|
%% Test code for oxCreateControl_RFC_101 |
%% Test code for oxCreateControl_RFC_101 |
/sm1connect101 { |
/sm1StartControl101 { |
[/in-sm1connectr /pass /peer /data /control ] pushVariables |
[/in-sm1connectr /pass /peer /data /control ] pushVariables |
[ |
[ |
/pass [(oxGenPass)] extension def |
/pass [(oxGenPass)] extension def |
/peer [(oxGetPort) (localhost)] extension def |
/peer [(oxGetPort1) (localhost)] extension def |
/peer [ peer 0 get peer 1 get ] def %% BUG, close the rest. |
|
/data peer 1 get toString def |
/data peer 1 get toString def |
peer message |
peer message |
[(/home/nobuki/OpenXM/src/oxc/oxc) |
[(/home/nobuki/OpenXM/src/oxc/oxc) |
|
|
popVariables |
popVariables |
} def |
} def |
|
|
initializePathNamesForOx %% This should be |
/sm1StartEngine101 { |
|
[/in-sm1StartEngine101 /peer /data /control /engineID] pushVariables |
|
[ |
|
/peer [(oxGetPort1) (localhost)] extension def |
|
/data peer 1 get def |
|
|
|
ox.ccc data oxpushcmo |
|
ox.ccc (/home/nobuki/OpenXM/bin/ox_sm1) oxpushcmo |
|
[(oxPushCMD) ox.ccc SM_control_spawn_server] extension |
|
ox.ccc oxpopcmo /engineID set |
|
[(oxCreateEngine_RFC_101) peer 0 (Empty) engineID] extension |
|
/ox.ddd set |
|
(The engine is binded to the variables ox.ddd) message |
|
] pop |
|
popVariables |
|
arg1 |
|
} def |
|
|
|
/OxWorkDirCreated false def |
|
/oxWorkDir { |
|
[/in-oxWorkDir /workHome /work] pushVariables |
|
[ |
|
[(getenv) (OpenXM_tmp)] extension tag 0 eq { |
|
/workHome [ |
|
[(getenv) (HOME)] extension |
|
(/OpenXM_tmp) |
|
] cat def |
|
}{ |
|
/workHome |
|
[(getenv) (OpenXM_tmp)] extension |
|
def |
|
}ifelse |
|
/work [workHome (/) [(getpid)] extension toString] cat def |
|
|
|
OxWorkDirCreated not { |
|
[(stat) workHome] extension 0 get tag 0 eq { |
|
[(Working directory ) workHome ( will be created.)] cat |
|
message |
|
[(mkdir ) workHome] cat system |
|
}{ |
|
} ifelse |
|
|
|
[(stat) work] extension 0 get tag 0 eq { |
|
[(Working directory ) work ( will be created.)] cat |
|
message |
|
[(mkdir ) work] cat system |
|
}{ |
|
} ifelse |
|
/OxWorkDirCreated true def |
|
}{ } ifelse |
|
/arg1 work def |
|
] pop |
|
popVariables |
|
arg1 |
|
} def |
|
[(oxWorkDir) |
|
[(oxWorkDir returns a name of working directory for OpenXM processes.) |
|
(If the working direcotry does not exist, it creates ~/OpenXM_tmp/[pid].) |
|
(The name can be changed by setting a value to the environmental variable) |
|
(OpenXM_tmp. cf. oxNewFileName) |
|
] |
|
] putUsages |
|
|
|
/OxFileName 0 def |
|
/oxNewFileName { |
|
[/in-oxNewFileName /name] pushVariables |
|
[ |
|
/name [(work) OxFileName toString] cat def |
|
/OxFileName OxFileName 1 add def |
|
/arg1 name def |
|
] pop |
|
popVariables |
|
arg1 |
|
} def |
|
[(oxNewFileName) |
|
[(oxNewFileName returns a unique file name for a working file.) |
|
(cf. oxWorkDir) |
|
] |
|
] putUsages |
|
|
|
[(ostype)] extension 0 get |
|
(windows) eq { |
|
}{ |
|
initializePathNamesForOx %% This should be |
|
} ifelse |