version 1.1, 1999/11/10 21:25:48 |
version 1.4, 2000/03/16 09:14:52 |
|
|
/** |
/** |
* $OpenXM$ |
* $OpenXM: OpenXM/src/OpenMath/elimi.java,v 1.3 1999/12/09 00:32:36 tam Exp $ |
*/ |
*/ |
|
|
import JP.ac.kobe_u.math.tam.OpenXM.*; |
import JP.ac.kobe_u.math.tam.OpenXM.*; |
Line 183 class elimi extends Applet implements ActionListener,R |
|
Line 183 class elimi extends Applet implements ActionListener,R |
|
com += ")] gb"; |
com += ")] gb"; |
|
|
debug("command: "+ com); |
debug("command: "+ com); |
oxm.sendCMO(new CMO_STRING(com)); |
oxm.send(new CMO_STRING(com)); |
oxm.sendSM(new SM(SM.SM_executeStringByLocalParser)); |
oxm.send(new SM(SM.SM_executeStringByLocalParser)); |
oxm.sendSM(new SM(SM.SM_popString)); |
oxm.send(new SM(SM.SM_popString)); |
}catch(java.io.IOException e){} |
}catch(java.io.IOException e){} |
} |
} |
/* |
/* |
Line 208 class elimi extends Applet implements ActionListener,R |
|
Line 208 class elimi extends Applet implements ActionListener,R |
|
+"("+ ControlPort +","+ DataPort +")"); |
+"("+ ControlPort +","+ DataPort +")"); |
|
|
try{ |
try{ |
|
Runtime runtime = Runtime.getRuntime(); |
|
|
|
runtime.exec("sh -c \"xterm -name $OpenXM_HOME\""); |
|
//runtime.getInputstream(); |
|
//runtime.getOutput(); |
|
//runtime.exec("sh -c \"/home/tam/OpenXM/lib/sm1/bin/oxlog /usr/X11R6/bin/xterm -name echo ${OpenXM_HOME} /home/tam/OpenXM/lib/sm1/bin/ox -ox /home/tam/OpenXM/lib/sm1/bin/ox_sm1_forAsir -data "+ DataPort +" -control "+ ControlPort +"\""); |
|
|
|
Thread.sleep(3000); |
|
|
oxm = new OpenXM(host,ControlPort,DataPort); |
oxm = new OpenXM(host,ControlPort,DataPort); |
System.out.println("Connected."); |
System.out.println("Connected."); |
oxm.sendCMO(new CMO_STRING("(cohom.sm1) run ;\n")); |
oxm.send(new CMO_STRING("(cohom.sm1) run ;\n")); |
oxm.sendSM(new SM(SM.SM_executeStringByLocalParser)); |
oxm.send(new SM(SM.SM_executeStringByLocalParser)); |
|
|
thread = new Thread(this); |
thread = new Thread(this); |
thread.start(); |
thread.start(); |
}catch(java.io.IOException e){ |
}catch(Exception e){ |
System.out.println("failed."); |
System.out.println("failed."); |
stop(); |
stop(); |
} |
} |