Maxima batch mode



Stéphane,

What you need to run for batch processing is not xmaxima, but the
command-line version, maxima.exe. In a standard Maxima 5.9.0 installation on
Windows, it can be found in \Program
Files\Maxima-5.9.0\lib\maxima\5.9.0\binary-gcl. If you have a file called
IN.TXT, for instance, containing your Maxima commands, you could have a
DOS/Windows command line that looks like this:

type IN.TXT | maxima.exe -eval "(user::run)" >OUT.TXT

Of course you may want to use the full path name for IN.TXT, OUT.TXT, and
maxima.exe if they are not in your current directory.


Viktor


-----Original Message-----
From: maxima-admin@math.utexas.edu [mailto:maxima-admin at math] On
Behalf Of Stephane DRAY
Sent: Monday, July 12, 2004 10:33 AM
To: maxima@www.ma.utexas.edu
Subject: Maxima batch mode

Hello,
I am a new user of Maxima since 4 days. I work on Windows XP.
Usually I work with R but I need maxima for computer algebra
functionalities.
I would like to create a script with R that
- create a file ("funcmaxima.txt") with function for maxima
- launch maxima with a this batch file
- and then take the results from a text file where maxima has write the 
results (with command stringout).

I think I know how to do it but I have only one problem to launch maxima 
from R.

With R, I can launch xmaxima through cmd.exe with this line:
system('"C:/Program Files/Maxima-5.9.0/bin/xmaxima.exe"')

But I do not know how to say to maxima to execute what is in the file 
"funcmaxima.txt". I think I must use batch commands but do not find the 
solution.

What I have read in the doc is that I must open maxima by hand and then use 
the batch button with my file. I never read about a complete batch mode 
(launch xmaxima and execute a scrit automatically).

Hope someone could help me,
Sincerely.


Stéphane DRAY
----------------------------------------------------------------------------
---------------------- 

Département des Sciences Biologiques
Université de Montréal, C.P. 6128, succursale centre-ville
Montréal, Québec H3C 3J7, Canada

Tel : (514) 343-6111 poste 1233         Fax : (514) 343-2293
E-mail : stephane.dray@umontreal.ca
----------------------------------------------------------------------------
---------------------- 

Web
http://www.steph280.freesurf.fr/
----------------------------------------------------------------------------
---------------------- 


_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima