version 1.4, 2001/08/12 07:20:37 |
version 1.7, 2001/08/21 14:21:29 |
|
|
%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-sm1.sm1,v 1.3 2001/08/12 03:13:35 takayama Exp $ |
%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-sm1.sm1,v 1.6 2001/08/21 14:12:45 takayama Exp $ |
%% http server by sm1 |
%% http server by sm1 |
%% Note to run on the Windows (TM). |
%% Note to run on the Windows (TM). |
%% (A) You need to set IE (internet explorer) as follows: |
%% (A) You need to set IE (internet explorer) as follows: |
|
|
] cat |
] cat |
def |
def |
|
|
[(getenv) (OSTYPE)] extension |
[(ostype)] extension 0 get |
tag 0 eq { |
(windows) eq { |
|
%% Native windows environment or cygwin. |
[(parse) (ox-win.sm1) pushfile] extension |
[(parse) (ox-win.sm1) pushfile] extension |
}{ |
}{ |
[(getenv) (OSTYPE)] extension |
[(parse) (ox.sm1) pushfile] extension |
(cygwin) eq { |
|
[(parse) (ox-win.sm1) pushfile] extension |
|
}{ |
|
[(parse) (ox.sm1) pushfile] extension |
|
} ifelse |
|
} ifelse |
} ifelse |
|
|
(ox_sm1.started) boundp { |
(ox_sm1.started) boundp { |
} { |
} { |
%% Initialize ox_sm1 |
%% Initialize ox_sm1 |
[(getenv) (OSTYPE)] extension |
[(ostype)] extension 0 get |
tag 0 eq { |
(windows) eq { |
sm1connectr_win %% Assume that it is native Windows. |
[(getenv) (OSTYPE)] extension |
|
(cygwin) eq { |
|
sm1connectr %% Cygwin |
|
}{ |
|
sm1connectr_win %% Native Windows. |
|
} ifelse |
}{ |
}{ |
sm1connectr %% cygwin or unix. |
sm1connectr %% Unix |
} ifelse |
} ifelse |
ox.ccc oxmathcap |
ox.ccc oxmathcap |
ox.ccc oxsetmathcap |
ox.ccc oxsetmathcap |
|
|
% [(sleep 3; start iexplore http://localhost:) |
% [(sleep 3; start iexplore http://localhost:) |
% httpd.port toString |
% httpd.port toString |
% ( &)] cat system |
% ( &)] cat system |
[(forkExec) |
[(ostype)] extension 0 get |
[ |
(windows) eq { |
(c:/windows/command/start) |
%% On windows. |
(iexplore) %% Starting internet explorer (TM). |
[(forkExec) |
[(http://localhost:) httpd.port toString] cat |
[ |
] |
(c:/windows/command/start) |
[ ] |
(iexplore) %% Starting internet explorer (TM). |
3] extension |
[(http://localhost:) httpd.port toString] cat |
|
] |
|
[ ] |
|
3] extension |
|
}{ |
|
%% On unix. |
|
[(sleep 3 ; netscape http://localhost:) httpd.port toString ( & ) ] cat |
|
system |
|
} ifelse |
httpd ; |
httpd ; |
] pop |
] pop |
popVariables |
popVariables |
|
|
} def |
} def |
|
|
/httpd.sm1man |
/httpd.sm1man |
("http://www.math.sci.kobe-u.ac.jp/OpenXM/1.1.3/doc/asir2000/html-jp/man_toc.html") |
("http://www.math.sci.kobe-u.ac.jp/OpenXM/1.1.3/doc/kan96xx/onlinehelp/index.html") |
def |
def |
/httpd.sm1man.index |
/httpd.sm1man.index |
("http://www.math.sci.kobe-u.ac.jp/OpenXM/1.1.3/doc/asir2000/html-jp/man_262.html#SEC262") |
("http://www.math.sci.kobe-u.ac.jp/OpenXM/1.1.3/doc/asir2000/html-jp/man_262.html#SEC262") |
def |
def |
/httpd.asir.intro |
/httpd.asir.intro |
("http://www.math.sci.kobe-u.ac.jp/~taka/asir-book-html/main") |
("http://www.math.sci.kobe-u.ac.jp/OpenXM/1.1.3/doc/kan96xx/ttt/index.html") |
def |
def |
/send-menu-1 { |
/send-menu-1 { |
|
|
|
|
(HELP:) sendln |
(HELP:) sendln |
[(<font color="red"> |
[(<font color="red"> |
<a href=) httpd.sm1man ( > Sm1manual (Ja) </a> </font>, )] cat sendln |
<a href=) httpd.sm1man ( > Sm1manual (Ja) </a> </font>, )] cat sendln |
[(<font color="purple"> |
|
<a href=) httpd.sm1man.index ( > Index (Ja) </a> </font>, )] cat sendln |
|
[(<font color="blue"> |
[(<font color="blue"> |
<a href=) httpd.asir.intro ( > Intro (Ja) </a> </font>, )] cat sendln |
<a href=) httpd.asir.intro ( > Intro (Ja) </a> </font>, )] cat sendln |
} def |
} def |