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.
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
. TryMathKernel -run "a=1"
and evaluatea
on In1.