问题
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.
来源:https://stackoverflow.com/questions/5770519/command-line-arguments-of-mathematica-kernel-and-frontend