5
votes

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
This question will be deleted sooner or later by other users as it is "not a real question". Much care have been used in the "Mathematica Toolbag" question to prevent that, and we will eventually move all of its contents to the tag wiki, if someone propose to close the question. I suggest you to edit the question there and add answers, instead of creating another post. Also, if you decide in contrary, please flag this question for moderation attention and ask to converted it to community wiki - Dr. belisarius
@belisarius I think that the subject of this tread differs a bit from "Mathematica Toolbag" and that these threads should be separated. But you are much more experienced and I will do what you say. - Alexey Popkov
In Spanish there is a meme that goes "Tiene razón, pero marche preso". Something like "You're right, but go to jail". - Dr. belisarius
@belisarius What do you think about edited version of my question? - Alexey Popkov
Better now. Let's see if it survives. - Dr. belisarius

1 Answers

5
votes

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.