Previous: Installing a New Module for MAXIMA Up: Helpful Hints to MAXIMA Programmers Next: About this document ...

Performing Calculations in the Background

For long calculations with MAXIMA, it is convenient to leave a MAXIMA running in the background and use the terminal for doing other things or to logout and leave the MAXIMA running.

To do this, the computation is specified in a batch file. This batch file is run using the batch command in MAXIMA. Then control-Z to stop the MAXIMA and put it in the background by the UNIX bg command.

In order for things to work correctly, the batch file should begin with the line


ttyoff:true$

which will suppress any output to your CRT. In case you need to see the output, then use the MAXIMA writefile and closefile combination as well. At the end of the batch file, include the line


exit()$

This will cause the MAXIMA to terminate after all commands in the batch file have been processed.

farrell@mcs.kent.edu