batch run with unix command



On 2013-01-15, Jordan Ko <ko.jordan at gmail.com> wrote:

> $ /Applications/Maxima.app/Contents/MacOS/Maxima
> --batch-string="diff(sin(x),x);"
> $ /Applications/wxMaxima.app/Contents/MacOS/wxmaxima
> --batch-string="diff(sin(x),x);"
>
> However, when I tried that, I opened another Maxima terminal without
> running the commands and the command doesn't even show up. Does anyone
> have any suggestions on how to run maxima in command mode with
> something similar to
>
> /Applications/Maxima.app/Contents/MacOS/Maxima
> --batch-string="batchload('CoorWeights.wxm');"

Have you tried --batch=foo.bar ?

About opening a terminal or whatever -- maybe .../MacOS/Maxima is a
wrapper which opens a terminal and executes the Maxima program proper.
To avoid opening a terminal, maybe you can find the Maxima program
execution within that wrapper and execute that. I don't have a Mac so I
can't check that myself.

best

Robert Dodier