[Fwd: Maxima]



> From: Pascal <pgrandeau at wanadoo>
> To: amundson@users.sourceforge.net
> Subject: Maxima
> Date: Fri, 19 Mar 2004 15:18:30 +0100
> 
> Good afternoon,
> 
> I want to use Maxima with Windows but not with xmaxima. What I want to 
> do is to send a file to maxima and to get back the results, something 
> like maxima <aa.txt >bb.txt but I cannot find how to do this.

First the good news:

You can easily get maxima to run on the input file aa.txt:

	maxima --batch=aa.txt

(I don't know how you would redirect the output under Windows, sorry.)

Now the bad news:

Maxima 5.9.0 only supports command-line arguments like --batch on
unix-like systems. They don't work on Windows. Maxima 5.9.1, however,
will support the same command-line options on windows and unix,
including the --batch flag. 

Unfortunately, Maxima 5.9.1 has not yet been released. If you are
feeling brave, you can try building the current cvs version of maxima.
The command-line options are working in the current cvs. You could also
try downloading the most recent snapshot from sf.net/projects/maxima and
build that.

If you aren't up to building maxima yourself, and you just can't wait
for 5.9.1 to be released, you can try setting the environment variables
	 MAXIMA_INT_INPUT_STRING="batch(\"aa.txt\");"
         MAXIMA_INT_BATCH_FLAG=":batch"
then run the maxima.bat script. (I can't tell you exactly how to do that
on Windows.) It might work.

--Jim

P.S. I'm glad to see that someone is interested in this sort of thing. I
spent quite a bit of time working on supporting command-line options on
Windows.