此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)
Mathematica 系统程序

MathKernel

MathKernel options
starts the Mathematica kernel on Windows and Mac OS X.
  • MathKernel runs the stand-alone Mathematica kernel. To access the full Mathematica system including the notebook interface, use Mathematica.
  • A stand-alone kernel session normally reads input from stdin (typically a keyboard), evaluates the expression, and prints the results to stdout (typically a display device). Input and output can be redirected using Mathematica commands or standard shell mechanisms.
  • The following command-line options can be given:
-mathlinkcommunicate only via MathLink
-initfile "file"execute the commands in the initialization file file during startup
-lmverboseprint information on interactions with MathLM
-noinitdo not read any initialization files
-password "pw"use the password pw
-pwfile "file"read passwords from file
-run cmdrun cmd on startup
-nopromptdo not print banner or In/Out prompts (useful for batch input)
  • If no command-line options are given, the kernel will read the value of the environment variable MATHKERNELINIT and will use that value as though it had been entered on the command line.
  • Unless the Mathematica variable $IgnoreEOF is set to True, the kernel will exit when it receives an end-of-file character sequence. The kernel will always exit when given the command Quit.