[Maxima] how to use "maxima --batch" *reliably* ??
Raymond Toy (RT/EUS)
raymond.toy at ericsson.com
Wed Feb 27 16:21:16 CST 2008
Robert Dodier wrote:
> About interactive queries triggered in batch files,
>
> On Wed, Feb 27, 2008 at 12:54 PM, Robert Marik <marik at mendelu.cz> wrote:
>
>> Maxima hangs and the process sits on the server. I use the timeout scritp
>> which kill maxima after 5 seconds:
>> http://www.shelldorado.com/scripts/cmds/timeout
>
> It seems like it should be possible to close the terminal input stream
> so that if any read from the terminal is attempted then there would be
> a Lisp error. I don't know if that's really possible; depends on the
> Lisp implementation for sure.
Neat.
FWIW, mread reads from *query-io*, which is a standard CL stream. If
you (close *query-io*), you should get some kind of error when maxima
needs to ask a question. Not sure what other effects this might have,
though.
Ray
More information about the Maxima
mailing list