A.7.1 Command-Line Options and Environment Variables
Typical command-line options for Mathematica executables.
|-pwfile ||Mathematica password file |
|-pwpath ||path to search for a Mathematica password file |
|-run ||Mathematica input to run (kernel only) |
|-initfile ||Mathematica initialization file |
|-initpath ||path to search for initialization files |
|-noinit ||do not run initialization files |
|-mathlink ||communicate only via MathLink|
If the Mathematica front end is called with a notebook file as a command-line argument, then this notebook will be made the initial selected notebook. Otherwise, a new notebook will be created for this purpose.
Mathematica kernels and front ends can also take additional command-line options specific to particular window environments.
|$MATHINIT ||command-line environment for the Mathematica front end, as well as MathReader|
|$MATHKERNELINIT ||command-line environment for the Mathematica kernel |
|$MATHEMATICA_BASE ||setting for $BaseDirectory |
|$MATHEMATICA_USERBASE ||setting for $UserBaseDirectory |
If no command-line options are explicitly given, Mathematica will read the values of operating system environment variables, and will use these values like command lines.