Mathematica 9 is now available
Previous section-----Next section

A.7.1 Command-Line Options and Environment Variables

-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

Typical command-line options for Mathematica executables.

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

Environment variables.

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.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.