Subject: Are these both the right answer for the integral?
From: Michel Talon
Date: Fri, 14 Jan 2011 23:18:13 +0100
Richard Hennessy wrote:
> Hi List,
Hi, Richard
sorry to hijack this thread but sometimes ago you asked how to interact
with maxima programmatically through a socket. If you don't have the
solution i have found one today, after having tried "maxima -s" which
doesn't work (namely this redirects output to the socket but leaves
input on standard input). The thing which works is:
First you open a listening socket, for example with netcat
nc -l 8888
Then you connect maxima to the socket in the following way:
maxima -r ":lisp (setup-client 8888)"
Here you execute the function setup-client defined in server.lisp which
connects to port 8888.
Then everything is redirected to the socket. You can easily replace netcat
by a program which parses maxima output, or feeds maxima input the way you
want.
--
Michel Talon