Operating Maxima out of another program by a TCP connection
Subject: Operating Maxima out of another program by a TCP connection
From: GP
Date: Tue, 15 Nov 2011 20:13:13 +0000 (UTC)
<maxima-list <at> ssteiner.com> writes:
>
> Dear Maxima experts,
>
> I'd like to operate Maxima out of a self-programmed software by using a TCP
connection. I use Windows
> 2000/XP. According to the source code of wxMaxima, it should be possible to
start maxima in something like
> a "server mode" in which it allows connecting to it through a tcp connection.
But I still haven't succeeded
> in starting Maxima this way. What are the correct command line parameters for
maxima.exe to make Maxima
> accept tcp connections on port xy (e.g. 4010)? I already tried
> maxima -eval "(maxima::start-server 4040)" -eval "(run)" -f
> [=> error message: Error in SYSTEM::SET-UP-TOP-LEVEL [or a callee]: Could
not connect]
> and
> maxima -s 4010
> [=> Maxima just quits, nothing happens]
> but both command lines don't work. How to make Maxima become operatable using
a TCP connection?
>
> Thanks a lot!
>
> Bye,
> Sebastian
>
You need to modify the maxima.bat file in order to have it working :
set prefix=C:\Program Files\Maxima-5.24.0
set maxima_prefix=C:\Program Files\Maxima-5.24.0
then modify the following :
:dogcl
from %maxima_imagesdir% to "%maxima_imagedir%" : quotes are missing and the
batch file cannot be run
"%maxima_imagesdir%"\binary-gcl\maxima.exe -eval.....