[BACK]Return to usage.txt CVS log [TXT][DIR] Up to [local] / OpenXM / src / OpenMath

File: [local] / OpenXM / src / OpenMath / usage.txt (download)

Revision 1.4, Thu Jan 13 12:48:46 2000 UTC (24 years, 3 months ago) by tam
Branch: MAIN
CVS Tags: maekawa-ipv6, R_1_3_1-2, RELEASE_20000124, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3, RELEASE_1_1_2, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.3: +1 -1 lines

I changed usage.txt.
	This diffrence is CLASSPATH enviroment.

easy usage:

1, start OMproxy
	% cd ${OpenXM_HOME}/lib/java-support
	% java -classpath /usr/local/jdk1.1.8/lib/classes.zip:${OpenXM_HOME}/lib/java-support/OpenXM.jar:. OMproxy

2, start sm1 and connect to OMproxy

=====sm1=====
sm1>macro package : dr.sm1,   9/26,1995 --- Version 9/8, 1999. 
sm1>macro package : module1.sm1, 1994 -- Nov 8, 1998
sm1>(ox.sm1) run ;  
ox.sm1, --- open sm1 protocol module 10/1,1999  (C) N.Takayama. oxhelp for help
sm1>[(localhost) 1300 1200] oxconnect /ox set ;
Trying to connect port 1200, ip=100007f
connected.

Control port 1200 : Connected.
Trying to connect port 1300, ip=100007f
connected.

Stream port 1300 : Connected.
Byte order for control process is network byte order.
Byte order for engine process is network byte order.
===== =====

3, send '123' of CMO_ZZ format
 & trancerate to OpenMath XML encoding

=====sm1=====
sm1>ox (123).. oxsendcmo ::
%[null]
sm1>ox (CMO2OMXML) oxexec ::
%[null]
sm1>ox oxpopcmo ::
$<OMOBJ><OMI>123</OMI></OMOBJ>$
===== =====

4, send (CMO_ZZ,5) of OpenMath XML encoding word
 & trancerate to CMO format

=====sm1======
sm1>ox (<OMOBJ><OMI>5</OMI></OMOBJ>) oxsendcmo ::
%[null]
sm1>ox (OMXML2CMO) oxexec ::
%[null]
sm1>ox oxpopcmo ::
5
===== =====