Re: Calling a remote kernel from an external program.
- To: mathgroup at smc.vnet.net
- Subject: [mg27837] Re: Calling a remote kernel from an external program.
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 19 Mar 2001 17:51:17 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <98vik0$938@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, if you can call LinkCreate[] than you have a program that acts like a FrontEnd and the kernel can't listen to two fontends you must call the kernel with math -mahtlink -linkcreate or reset the parent link to your program Regards Jens PS: Ok. The kernel can listen to two fontends with the brilliant trick invented by Tod Galley in it's J/Link packages. parra at signition.com wrote: > > I am trying to have a c program connect to a mathematica kernel that is running > on a different machine. Is this possible? On the machine where I have > mathematica, I start it and run LinkCreate[] which gives me a port. > Then on the other machine I run the compiled c with the option > -linkconnect "portnumber@remotecomputer". > The executable seems to connect (MLActivate returns fine), but when then > the c program hangs when the kernel is supposed to send data to the > c program. If I run the excutable on the computer where mathematica is > intalled using -linkname "math -matlink" then it all works fine. > Any ideas? > Thanks, > > -Mario