Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > Standalone Mathematica Kernels >
Mathematica > Core Language > Package Development > Standalone Mathematica Kernels >
Mathematica > Systems Interfaces & Deployment > Mathematica Sessions > Session Customization > Standalone Mathematica Kernels >
Standalone Mathematica Kernels
Mathematica's core language and computation capabilities can be accessed not only through its rich interactive notebook interface, but also directly through a command-line interface—allowing Mathematica to be used in large-scale batch mode, or as the world's most powerful scripting language, fully integrated into any computational environment.
Command Line Programs
Mathematica, mathematica launch the complete Mathematica system
MathKernel, math launch a standalone Mathematica kernel
MathematicaScript run a standalone executable script
    
% most recent output expression
Quit quit the Mathematica kernel
Input & Output
Get( ▪ Put( ▪ Import  ▪ Export  ▪ Input
    
Setting Up Scripts
-script command-line argument for running a script
$CommandLine, $ScriptCommandLine command-line arguments
Environment system environment variables
Batch Operation
$BatchInput, $BatchOutput handle interrupts etc. unattended
SendMail send an expression by email
init.m file of commands to run at initialization
$Echo where to echo input
$Input  ▪ $Output  ▪ $IgnoreEOF  ▪ $Linked  ▪ $ProcessID
    
UsingFrontEnd execute commands using a front end if necessary
TUTORIALS
MORE ABOUT
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF