Re: batching a file from terminal



presumably what needs to be done is
the lisp has to look for command-line arguments. This is
not standardized in common lisp and so would be
different in CLISP, GCL, etc.  And maybe different
for different platforms.
A more portable way may be to make a lisp initialization
file in the standard place that has some command like

(meval '(($batch) |&nameoffile|))

in it.
  If the name of the file differs, you could edit the
file by hand or by some other mechanism.

Then run maxima.

You might want to open a file for output in that
batch file, write to it, close it, and quit out of
the maxima.  Alternatively you could try to direct
the standout output somewhere.


I hope this is useful.
RJF


Roberto Jimeno wrote:

> Hello Dick!
> 
> I'm new to Maxima but not to Unix/Linux.
> 
> Let's see the next example at the command line:
> 
> [jimeno@chiquis jimeno]$ echo 'describe("plot"); all ;' > t.bat 
> [jimeno@chiquis jimeno]$ maxima < t.bat
> 
> This sould display a long description list about all maxima's
> "commands" related to `plot'; nontheles I believe this is not
> actually usefull because I see no simple/elegant way to pass
> extra parameters (v.g.: variable values) to the .bat file.
> 
> I hope some subscriber to the maxima mailing list have a better idea.
> 
> 
>>If I have a file of macsyma commands, which in a maxima session I can
>>batch, say test.bat, is it possible to call it from the command line
>>in
>>a a terminal window when I start up a maxima session? For instance,
>>something of the sort "maxima test.bat". This does not work, nor other
>>variations I have tried, but then again, I am not a unix wizard. I am
>>using 5.6 on linux redhat 7.1.
>>Thanks,
>>Dick Fell
>>
> 
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>