Command-line arguments of Mathematica Kernel and F

2019-06-22 22:21发布

问题:

I still know nothing on usage of such command-line options of MathKernel as

-lmverbose
-run cmd
-password "pw"
-pwfile "file"

How are they working and what they are needed for?

Are there other potentially useful command-line options of the MathKernel and the FrontEnd?

P.S. Related answer.

回答1:

Please consult the following reference pages: MathKernel and Mathematica. Opening "More Information" section you will see documented options. Its says

-pwfile "file" ------- read passwords from file

-run cmd ----------- run cmd on startup

-lmverbose ------------ print information on interactions with MathLM


One can use -run option to execute certain commands before the first input, and it will not affect In/Out. Try MathKernel -run "a=1" and evaluate a on In1.