Enviroment Variables

MMA checks for enviroment variables when starting so it can modify seldom changed settings. The list is short, but will probably expand in the future to support arcane and unusual requests.

MMA_ENCODING
By default MMA uses cp1252 to encode input and output files. You can change this via the MMA_ENCODING environment variable. If it doesn't work, you are on your own. Please note, this variable must be all uppercase with a single underscore in between MMA and ENCODING.

MMA_LOGFILE=filename
Rather than printing errors and other runtime information to standard output (the terminal screen) this option sets a filename for saving the output. Note that if the file already exists it will be overwritten. FILENAME should be a normal file name understood by your operating system.

The file will only be created if there is output other than MMA PRINT statements. A header showing the date will be inserted at the top of the file.

The easy way to use this is with a command line like:

$ MMA_LOGFILE=abc mma test.mma