Standalone Wolfram Language Kernels
The Wolfram Language and its computation capabilities can be accessed not only through its rich interactive notebook interface, but also directly through a command-line interface—allowing the Wolfram Language 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
WolframKernel, wolfram — launch a standalone Wolfram Language kernel
wolframscript — run a standalone executable script
Kernel Sessions »
% — most recent output expression
Quit — quit the Wolfram Language kernel
Input & Output
Get(<<) ▪ Put(>>) ▪ Import ▪ Export ▪ Input
Setting Up Scripts
-script — command-line argument for running a script
$ScriptInputString — string containing standard input to 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
Session Parameters & Customization »
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