version 1.3, 2000/03/14 02:21:40 |
version 1.4, 2000/03/14 05:46:09 |
|
|
%% $OpenXM: OpenXM/src/ox_math/documents/math2ox.texi,v 1.2 2000/03/11 09:17:42 ohara Exp $ |
%% $OpenXM: OpenXM/src/ox_math/documents/math2ox.texi,v 1.3 2000/03/14 02:21:40 ohara Exp $ |
|
|
\input texinfo |
\input texinfo |
@iftex |
@iftex |
|
|
|
|
@itemize @bullet |
@itemize @bullet |
@item It starts the OX server @code{s}. |
@item It starts the OX server @code{s}. |
@item Servers are looked for in the directory $OenXM_HOME/bin, hoge hoge. |
@item Servers are looked for in the directory $OpenXM_HOME/bin, hoge hoge. |
@end itemize |
@end itemize |
|
|
@example |
@example |
Line 82 In this example, @code{ox_sm1} is started on the local |
|
Line 82 In this example, @code{ox_sm1} is started on the local |
|
@node Starting OX servers on a remote machine,,, Top |
@node Starting OX servers on a remote machine,,, Top |
@section Starting OX servers on a remote machine |
@section Starting OX servers on a remote machine |
|
|
The OpenXM ptotocol says that, if we need to run an OX server on a |
In order to connect to remote OX servers, it is convenient, secure and |
remote machine, then an OX client connect to the OX server on the remote |
recommended to use @code{ssh} (Secure SHell). |
machine by insecure mode. |
The function @code{OxStartRemoteSSH} starts remote OX servers |
|
by ssh. Of course, you are supposed to be able to login the remote |
|
machine by @code{ssh} and @code{$Remote_OpenXM_HOME/rc/cshrc} or |
|
@code{$Remote_OpenXM_HOME/rc/bashrc} are executed from the login shell |
|
of your remote machine. |
|
The function @code{OxStartRemoteSSH[]} does not request your password, |
|
that is, you need to be using @code{ssh-agent} before calling |
|
@code{OxStartRemoteSSH[]}. |
|
Then there will be no check of password. |
|
|
We note that insecure mode has a risk. |
|
For example, we are afraid our packets are listened in. |
|
However we know a simple method to plug such a security hole. |
|
That is, a connection by ssh (Secure SHell). |
|
Of course OpenXM protocol does not request ssh formally, but our |
|
mathematica client (math2ox) in current implementation |
|
needs ssh to connect a remote server. |
|
|
|
@c Description of OxStartRemoteSSH |
@c Description of OxStartRemoteSSH |
@menu |
@menu |
* OxStartRemoteSSH:: |
* OxStartRemoteSSH:: |
Line 103 needs ssh to connect a remote server. |
|
Line 103 needs ssh to connect a remote server. |
|
@findex OxStartRemoteSSH |
@findex OxStartRemoteSSH |
@table @t |
@table @t |
@item OxStartRemoteSSH[@var{s}, @var{host}] |
@item OxStartRemoteSSH[@var{s}, @var{host}] |
:: start the OX server @code{s} on the remote machine @code{host} via ssh. |
:: start the OX server @code{s} on the remote machine @code{host} by ssh. |
@end table |
@end table |
|
|
@table @var |
@table @var |
|
|
String |
String |
@end table |
@end table |
|
|
We note that the inplementation of function is incomplete! |
We note that the @code{OxStartRemoteSSH[]} is an experimental implementation. |
|
|
@itemize @bullet |
@itemize @bullet |
@item It starts the OX server @code{s}. |
@item It starts the OX server @code{s}. |
@item Servers are looked for in the directory $OenXM_HOME/bin, hoge hoge. |
@item Servers are looked for in the directory $OpenXM_HOME/bin, hoge hoge. |
@end itemize |
@end itemize |
|
|
@example |
@example |
|
|
|
|
@itemize @bullet |
@itemize @bullet |
@item It starts the OX server @code{s}. |
@item It starts the OX server @code{s}. |
@item Servers are looked for in the directory $OenXM_HOME/bin, hoge hoge. |
@item Servers are looked for in the directory $OpenXM_HOME/bin, hoge hoge. |
@end itemize |
@end itemize |
|
|
@example |
@example |
|
|
Integer |
Integer |
@end table |
@end table |
|
|
The @code{OxPopCMO[]} function pop an object on the top of the stack of |
The @code{OxPopCMO[]} function pops an object on the top of the stack of |
the OX stack machine @code{pid} and returns the object. |
the OX stack machine @code{pid} and returns the object. |
|
The return type of the function @code{OxPopCMO[]} is @code{Manual} in |
|
terms of MathLink, that is, an object of suitable type is returned. |
|
|
@example |
@example |
In[5] := cmo = OxPopCMO[] |
In[5] := cmo = OxPopCMO[pid] |
@end example |
@end example |
|
|
@c Description of OxPopString |
@c Description of OxPopString |
|
|
Integer |
Integer |
@end table |
@end table |
|
|
The @code{OxPopString[]} function pop an object on the top of the stack |
The @code{OxPopString[]} function pops an object on the top of the stack |
of the OX stack machine @code{pid} and returns a string which is |
of the OX stack machine @code{pid} and returns a string which is |
translate from the object by the OX stack machine. |
translated from the object by the OX stack machine. |
|
|
@example |
@example |
In[5] := string = OxPopString[] |
In[5] := string = OxPopString[pid] |
@end example |
@end example |
|
|
@c Description of OxClose |
@c Description of OxClose |
|
|
Integer |
Integer |
@end table |
@end table |
|
|
The @code{OxClose[]} function close the connection to the OX server |
The @code{OxClose[]} function closes the connection to the OX server |
@code{pid}. |
@code{pid}. |
|
|
@example |
@example |
In[5] := OxClose[] |
In[5] := OxClose[pid] |
@end example |
@end example |
|
|
@c Description of OxExecuteString |
@c Description of OxExecuteString |
|
|
|
|
The @code{OxExecuteString[]} function executes @code{command} on the OX server |
The @code{OxExecuteString[]} function executes @code{command} on the OX server |
@code{pid}. |
@code{pid}. |
@code{command} is interpreted in local language of the OX server. |
The string @code{command} is interpreted in local language of the OX server. |
|
|
@example |
@example |
In[5] := OxExecuteString["print(1+2);"] |
In[5] := OxExecuteString["print(1+2);"] |
|
|
Integer |
Integer |
@end table |
@end table |
|
|
The @code{OxGet[]} function get an object from the connection to the OX server |
The @code{OxGet[]} function gets an object from the connection to the OX server |
@code{pid}. |
@code{pid}. |
|
|
@example |
@example |
In[5] := cmo = OxGet[] |
In[5] := cmo = OxGet[pid] |
@end example |
@end example |
|
|
@c Put descriptions of a next function. |
@c Put descriptions of a next function. |