(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 4.0,
MathReader 4.0, or any compatible application. The data for the notebook 
starts with the line containing stars above.

To get the notebook into a Mathematica-compatible application, do one of 
the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the 
word CacheID, otherwise Mathematica-compatible applications may try to 
use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info@wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from 
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[     22609,        609]*)
(*NotebookOutlinePosition[     29773,        841]*)
(*  CellTagsIndexPosition[     28878,        800]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[TextData[{
  "A.7 ",
  StyleBox["Mathematica", "SBO"],
  " Sessions"
}], "Section",
  CellTags->{"SA.7.0", "0.1"}],

Cell["A.7.1 Command\[Hyphen]Line Options and Environment Variables", \
"Subsection",
  CellTags->{"SA.7.1", "1.1"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-password\\\\\\\"\\\", \\\
\"MR\\\"]\\) \"\>", \
"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) \
password \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-pwfile\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", \
"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) \
password file \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-pwpath\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"path to search for a \
\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) \
password file \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-run\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", \
"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) \
input to run (kernel only) \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-initfile\\\\\\\"\\\", \\\
\"MR\\\"]\\) \"\>", \
"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) \
initialization file \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-initpath\\\\\\\"\\\", \\\
\"MR\\\"]\\) \"\>", "\<\"path to search for initialization files \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-noinit\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"do not run initialization files \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-mathlink\\\\\\\"\\\", \\\
\"MR\\\"]\\) \"\>", "\<\"communicate only via \
\\!\\(\\*StyleBox[\\\"\\\\\\\"MathLink\\\\\\\"\\\", \\\"TI\\\"]\\) (kernel \
only) \"\>"}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.1", "1.2"}],

Cell[TextData[{
  "Typical command\[Hyphen]line options for ",
  StyleBox["Mathematica", "SO"],
  " executables. "
}], "Caption",
  CellTags->"SA.7.1"],

Cell[TextData[{
  "If the ",
  StyleBox["Mathematica", "TI"],
  " front end is called with a notebook file as a command\[Hyphen]line \
argument, then this notebook will be made the initial selected notebook. \
Otherwise, a new notebook will be created for this purpose. \n",
  StyleBox["Mathematica", "TI"],
  " kernels and front ends can also take additional command\[Hyphen]line \
options specific to particular window environments. "
}], "Text",
  CellTags->{"SA.7.1", "1.3"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"$MATHINIT\\\\\\\"\\\", \\\
\"MR\\\"]\\) \"\>", "\<\"command\[Hyphen]line environment for the \
\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) front \
end, as well as \\!\\(\\*StyleBox[\\\"\\\\\\\"MathReader\\\\\\\"\\\", \
\\\"TI\\\"]\\)\"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"$MATHKERNELINIT\\\\\\\"\\\
\", \\\"MR\\\"]\\) \"\>", "\<\"command\[Hyphen]line environment for the \
\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) kernel \
\"\>"}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.1", "1.4"}],

Cell["Environment variables. ", "Caption",
  CellTags->"SA.7.1"],

Cell[TextData[{
  "If no command\[Hyphen]line options are explicitly given, ",
  StyleBox["Mathematica", "TI"],
  " will read the values of operating system environment variables, and will \
use these values like command lines. "
}], "Text",
  CellTags->{"SA.7.1", "1.5"}],

Cell["A.7.2 Initialization", "Subsection",
  CellTags->{"SA.7.2", "2.1"}],

Cell[TextData[{
  "On startup, the ",
  StyleBox["Mathematica", "TI"],
  " kernel does the following: "
}], "Text",
  CellTags->{"SA.7.2", "2.2"}],

Cell[TextData[{
  "\[FilledSmallSquare] Perform license management operations.  \n\
\[FilledSmallSquare] Run ",
  StyleBox["Mathematica", "TI"],
  " commands specified in any ",
  StyleBox["-runfirst", "MR"],
  " options passed to the kernel executable.  \n\[FilledSmallSquare] Run ",
  StyleBox["Mathematica", "TI"],
  " commands specified in any ",
  StyleBox["-run", "MR"],
  " options passed to the kernel executable.  \n\[FilledSmallSquare] Run the \
",
  StyleBox["Mathematica", "TI"],
  " commands in the user\[Hyphen]specific or special location file ",
  StyleBox["init.m", "MR"],
  ".  \n\[FilledSmallSquare] Run the ",
  StyleBox["Mathematica", "TI"],
  " commands in the site\[Hyphen]wide or central location file ",
  StyleBox["init.m", "MR"],
  ".  \n\[FilledSmallSquare] Load ",
  StyleBox["init.m", "MR"],
  " and ",
  StyleBox["Kernel/init.m", "MR"],
  " files in ",
  StyleBox["Autoload", "MR"],
  " directories.  \n\[FilledSmallSquare] Begin running the main loop.   "
}], "Notes",
  CellTags->{"SA.7.2", "2.3"}],

Cell["A.7.3 The Main Loop", "Subsection",
  CellTags->{"SA.7.3", "3.1"}],

Cell[TextData[{
  "All ",
  StyleBox["Mathematica", "TI"],
  " sessions repeatedly execute the following main loop: "
}], "Text",
  CellTags->{"SA.7.3", "3.2"}],

Cell[TextData[{
  "\[FilledSmallSquare] Read in input.  \n\[FilledSmallSquare] Apply ",
  StyleBox["$PreRead", "MR"],
  " function, if defined, to the input string.  \n\[FilledSmallSquare] Print \
syntax warnings if necessary.  \n\[FilledSmallSquare] Apply ",
  StyleBox["$SyntaxHandler", "MR"],
  " function if there is a syntax error.  \n\[FilledSmallSquare] Assign ",
  StyleBox["InString[", "MR"],
  StyleBox["n", "TI"],
  StyleBox["]", "MR"],
  ".  \n\[FilledSmallSquare] Apply ",
  StyleBox["$Pre", "MR"],
  " function, if defined, to the input expression.  \n\[FilledSmallSquare] \
Assign ",
  StyleBox["In[", "MR"],
  StyleBox["n", "TI"],
  StyleBox["]", "MR"],
  ".  \n\[FilledSmallSquare] Evaluate expression.  \n\[FilledSmallSquare] \
Apply ",
  StyleBox["$Post", "MR"],
  " function, if defined.  \n\[FilledSmallSquare] Assign ",
  StyleBox["Out[", "MR"],
  StyleBox["n", "TI"],
  StyleBox["]", "MR"],
  ", stripping off any formatting wrappers.  \n\[FilledSmallSquare] Apply ",
  StyleBox["$PrePrint", "MR"],
  " function, if defined.  \n\[FilledSmallSquare] Assign ",
  StyleBox["MessageList[", "MR"],
  StyleBox["n", "TI"],
  StyleBox["]", "MR"],
  " and clear ",
  StyleBox["$MessageList", "MR"],
  ".  \n\[FilledSmallSquare] Print expression, if it is not ",
  StyleBox["Null", "MR"],
  ".  \n\[FilledSmallSquare] Increment ",
  StyleBox["$Line", "MR"],
  ".  \n\[FilledSmallSquare] Clear any pending aborts.  "
}], "Notes",
  CellTags->{"SA.7.3", "3.3"}],

Cell[TextData[{
  "Note that if you call ",
  StyleBox["Mathematica", "TI"],
  " via ",
  StyleBox["MathLink", "TI"],
  " from within an external program, then you must effectively create your \
own main loop, which will usually differ from the one described above. "
}], "Text",
  CellTags->{"SA.7.3", "3.4"}],

Cell["A.7.4 Messages", "Subsection",
  CellTags->{"SA.7.4", "4.1"}],

Cell[TextData[{
  "During a ",
  StyleBox["Mathematica", "TI"],
  " session messages can be generated either by explicit calls to ",
  StyleBox["Message", "MR"],
  ", or in the course of executing other built\[Hyphen]in functions. "
}], "Text",
  CellTags->{"SA.7.4", "4.2"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"f\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"::\\\\\\\"\\\", \\\"MR\\\"]\\)\\!\
\\(\\*StyleBox[\\\"\\\\\\\"name\\\\\\\"\\\", \\\"TI\\\"]\\)\\!\\(\\*StyleBox[\
\\\"\\\\\\\"::\\\\\\\"\\\", \
\\\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"lang\\\\\\\"\\\", \\\"TI\\\"]\\) \
\"\>", "\<\"a message in a specific language \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"f\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"::\\\\\\\"\\\", \\\"MR\\\"]\\)\\!\
\\(\\*StyleBox[\\\"\\\\\\\"name\\\\\\\"\\\", \\\"TI\\\"]\\) \"\>", "\<\"a \
message in a default language \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"General::\\\\\\\"\\\", \\\
\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"name\\\\\\\"\\\", \\\"TI\\\"]\\) \"\
\>", "\<\"a general message with a given name \"\>"}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.4", "4.3"}],

Cell["Message names. ", "Caption",
  CellTags->"SA.7.4"],

Cell[TextData[{
  "If no language is specified for a particular message, text for the message \
is sought in each of the languages specified by ",
  StyleBox["$Language", "MR"],
  ". If ",
  StyleBox["f", "TI"],
  StyleBox["::", "MR"],
  StyleBox["name", "TI"],
  " is not defined, a definition for ",
  StyleBox["General::", "MR"],
  StyleBox["name", "TI"],
  " is sought. If still no message is found, any value defined for ",
  StyleBox["$NewMessage", "MR"],
  " is applied to ",
  StyleBox["f", "TI"],
  " and ",
  StyleBox["\"", "MR"],
  StyleBox["name", "TI"],
  StyleBox["\"", "MR"],
  ". \n",
  StyleBox["Off[", "MR"],
  StyleBox["message", "TI"],
  StyleBox["]", "MR"],
  " prevents a specified message from ever being printed. ",
  StyleBox["Check", "MR"],
  " allows you to determine whether particular messages were generated during \
the evaluation of an expression. ",
  StyleBox["$MessageList", "MR"],
  " and ",
  StyleBox["MessageList[", "MR"],
  StyleBox["n", "TI"],
  StyleBox["]", "MR"],
  " record all the messages that were generated during the evaluation of a \
particular line in a ",
  StyleBox["Mathematica", "TI"],
  " session. \nMessages are specified as strings to be used as the first \
argument of ",
  StyleBox["StringForm", "MR"],
  ". ",
  StyleBox["$MessagePrePrint", "MR"],
  " is applied to each expression to be spliced into the string. "
}], "Text",
  CellTags->{"SA.7.4", "4.4"}],

Cell["A.7.5 Termination", "Subsection",
  CellTags->{"SA.7.5", "5.1"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"Exit[\\\\\\\"\\\", \\\"MR\
\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \
\[ThinSpace]or \[ThinSpace]\\!\\(\\*StyleBox[\\\"\\\\\\\"Quit[\\\\\\\"\\\", \
\\\"MR\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \"\
\>", "\<\"terminate \\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\
\"TI\\\"]\\) \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"$Epilog\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"symbol to evaluate before \\!\\(\\*StyleBox[\\\"\\\
\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) exits \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"$IgnoreEOF\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"whether to exit an interactive \
\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) session \
when an end\[Hyphen]of\[Hyphen]file character is received \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"end.m\\\\\\\"\\\", \\\"MR\
\\\"]\\) \"\>", "\<\"file to read when \
\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) \
terminates \"\>"}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.5", "5.2"}],

Cell[TextData[{
  StyleBox["Mathematica", "SO"],
  " termination. "
}], "Caption",
  CellTags->"SA.7.5"],

Cell[TextData[{
  "There are several ways to end a ",
  StyleBox["Mathematica", "TI"],
  " session. If you are using ",
  StyleBox["Mathematica", "TI"],
  " interactively, typing ",
  StyleBox["Exit[", "MR"],
  " ",
  StyleBox["]", "MR"],
  " or ",
  StyleBox["Quit[", "MR"],
  " ",
  StyleBox["]", "MR"],
  " on an input line will always terminate ",
  StyleBox["Mathematica", "TI"],
  ". \nIf you are taking input for ",
  StyleBox["Mathematica", "TI"],
  " from a file, ",
  StyleBox["Mathematica", "TI"],
  " will exit when it reaches the end of the file. If you are using ",
  StyleBox["Mathematica", "TI"],
  " interactively, it will still exit if it receives an end\[Hyphen]of\
\[Hyphen]file character (typically \[ControlKey]\[LeftModified]",
  StyleBox["d\[RightModified]", "MR"],
  "). You can stop ",
  StyleBox["Mathematica", "TI"],
  " from doing this by setting ",
  StyleBox["$IgnoreEOF=True", "MR"],
  ".  "
}], "Text",
  CellTags->{"SA.7.5", "5.3"}],

Cell["A.7.6 Network License Management", "Subsection",
  CellTags->{"SA.7.6", "6.1"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"single\[Hyphen]machine \
license\\\\\\\"\\\", \\\"TI\\\"]\\) \"\>", "\<\"a process must always run on \
a specific machine \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"network license\\\\\\\"\\\
\", \\\"TI\\\"]\\) \"\>", "\<\"a process can run on any machine on a network \
\"\>"}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.6", "6.2"}],

Cell["Single\[Hyphen]machine and network licenses. ", "Caption",
  CellTags->"SA.7.6"],

Cell[TextData[{
  "Copies of ",
  StyleBox["Mathematica", "TI"],
  " can be set up with either single\[Hyphen]machine or network licenses. A \
network license is indicated by a line in the ",
  StyleBox["mathpass", "MR"],
  " file starting with ",
  StyleBox["!", "MR"],
  StyleBox["name", "TI"],
  ", where ",
  StyleBox["name", "TI"],
  " is the name of the server machine for the network license. \nNetwork \
licenses are controlled by the ",
  StyleBox["Mathematica", "TI"],
  " license management program ",
  StyleBox["mathlm", "MR"],
  ". This program must be running whenever a ",
  StyleBox["Mathematica", "TI"],
  " with a network license is being used. Typically you will want to set up \
your system so that ",
  StyleBox["mathlm", "MR"],
  " is started whenever the system boots.  "
}], "Text",
  CellTags->{"SA.7.6", "6.3"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\[FilledSmallSquare] Type \
\\!\\(\\*StyleBox[\\\"\\\\\\\".\[Backslash]mathlm\\\\\\\"\\\", \\\"MR\\\"]\\) \
directly on the command line \"\>"},
                {"\<\"\[FilledSmallSquare] Add \
\\!\\(\\*StyleBox[\\\"\\\\\\\"mathlm\\\\\\\"\\\", \\\"MR\\\"]\\) as a Windows \
service \"\>"}
                },
              ColumnAlignments->{Left}],
            GridBoxOptions->{RowLines->False}]],
        "1ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.6", "6.4"}],

Cell["\<\
Ways to start the network license manager under Microsoft Windows. \
\
\>", "Caption",
  CellTags->"SA.7.6"],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\[FilledSmallSquare] Type \
\\!\\(\\*StyleBox[\\\"\\\\\\\"./mathlm\\\\\\\"\\\", \\\"MR\\\"]\\) directly \
on the Unix command line \"\>"},
                {"\<\"\[FilledSmallSquare] Add a line to start \
\\!\\(\\*StyleBox[\\\"\\\\\\\"mathlm\\\\\\\"\\\", \\\"MR\\\"]\\) in your \
central \\!\\(\\*StyleBox[\\\"\\\\\\\"/etc/rc.local\\\\\\\"\\\", \
\\\"MR\\\"]\\) boot file \"\>"},
                {"\<\"\[FilledSmallSquare] Add a \\!\\(\\*StyleBox[\\\"\\\\\\\
\"crontab\\\\\\\"\\\", \\\"MR\\\"]\\) entry to start \\!\\(\\*StyleBox[\\\"\\\
\\\\\"mathlm\\\\\\\"\\\", \\\"MR\\\"]\\) \"\>"}
                },
              ColumnAlignments->{Left}],
            GridBoxOptions->{RowLines->False}]],
        "1ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.6", "6.5"}],

Cell["Ways to start the network license manager under Unix. ", "Caption",
  CellTags->"SA.7.6"],

Cell[TextData[{
  "When ",
  StyleBox["mathlm", "MR"],
  " is not started directly from a command line, it normally sets itself up \
as a background process, and continues running until it is explicitly \
terminated. Note that if one ",
  StyleBox["mathlm", "MR"],
  " process is running, any other ",
  StyleBox["mathlm", "MR"],
  " processes you try to start will automatically exit immediately. "
}], "Text",
  CellTags->{"SA.7.6", "6.6"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-logfile\\\\\\\"\\\", \
\\\"MR\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"file\\\\\\\"\\\", \\\"TI\\\"]\\) \
\"\>", "\<\"write a log of license requests to \
\\!\\(\\*StyleBox[\\\"\\\\\\\"file\\\\\\\"\\\", \\\"TI\\\"]\\) \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-syslog\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"write the log to the \
\\!\\(\\*StyleBox[\\\"\\\\\\\"syslog\\\\\\\"\\\", \\\"MR\\\"]\\) daemon (Unix \
only) \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-pwfile\\\\\\\"\\\", \
\\\"MR\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"file\\\\\\\"\\\", \\\"TI\\\"]\\) \
\"\>", "\<\"use the specified \
\\!\\(\\*StyleBox[\\\"\\\\\\\"mathpass\\\\\\\"\\\", \\\"MR\\\"]\\) file \
(default \\!\\(\\*StyleBox[\\\"\\\\\\\"./mathpass\\\\\\\"\\\", \
\\\"MR\\\"]\\)) \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-timeout\\\\\\\"\\\", \
\\\"MR\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"n\\\\\\\"\\\", \\\"TI\\\"]\\) \"\
\>", "\<\"suspend authorization on stopped \
\\!\\(\\*StyleBox[\\\"\\\\\\\"Mathematica\\\\\\\"\\\", \\\"TI\\\"]\\) jobs \
after \\!\\(\\*StyleBox[\\\"\\\\\\\"n\\\\\\\"\\\", \\\"TI\\\"]\\) hours \
\"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-restrict\\\\\\\"\\\", \\\
\"MR\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"prog\\\\\\\"\\\", \\\"TI\\\"]\\) \
\"\>", "\<\"authorize a session only if executing \
\\!\\(\\*StyleBox[\\\"\\\\\\\"prog\\\\\\\"\\\", \\\"TI\\\"]\\) yields a \
nonzero exit code \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-install\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"install \\!\\(\\*StyleBox[\\\"\\\\\\\"mathlm\\\\\\\
\"\\\", \\\"MR\\\"]\\) as a Windows service (Microsoft Windows only) \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"-uninstall\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"uninstall \\!\\(\\*StyleBox[\\\"\\\\\\\"mathlm\\\\\
\\\"\\\", \\\"MR\\\"]\\) as a Windows service (Microsoft Windows only) \"\>"}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.6", "6.7"}],

Cell[TextData[{
  "Command\[Hyphen]line switches for ",
  StyleBox["mathlm", "MR"],
  ". "
}], "Caption",
  CellTags->"SA.7.6"],

Cell[TextData[{
  "You can use the ",
  StyleBox["mathlm", "MR"],
  " ",
  StyleBox["-restrict", "MR"],
  " ",
  StyleBox["prog", "TI"],
  " to tell the network license manager to authorize only certain sessions. \
The program ",
  StyleBox["prog", "TI"],
  " is passed as arguments the user ID and machine name for the session to be \
started, together with sequences ",
  StyleBox["i", "TI"],
  ", UID (Unix only), name for sessions 1, 2, \[Ellipsis]  already started. \n\
Note that as an alternative to ",
  StyleBox["-restrict", "MR"],
  ", you can insert commands in ",
  StyleBox["init.m", "MR"],
  " that exit unless ",
  StyleBox["$UserName", "MR"],
  ", ",
  StyleBox["$MachineName", "MR"],
  " and so on have appropriate values. "
}], "Text",
  CellTags->{"SA.7.6", "6.8"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"monitorlm\\\\\\\"\\\", \\\
\"MR\\\"]\\) \"\>", "\<\"print the current status of the network license \
manager \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"mathlm\\\\\\\"\\\", \
\\\"MR\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"-verbose\\\\\\\"\\\", \
\\\"MR\\\"]\\) \"\>", "\<\"run \\!\\(\\*StyleBox[\\\"\\\\\\\"mathlm\\\\\\\"\\\
\", \\\"MR\\\"]\\) in the foreground, printing actions that it takes \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"math\\\\\\\"\\\", \
\\\"MR\\\"]\\) \\!\\(\\*StyleBox[\\\"\\\\\\\"-lmverbose\\\\\\\"\\\", \\\"MR\\\
\"]\\) \"\>", "\<\"run \\!\\(\\*StyleBox[\\\"\\\\\\\"math\\\\\\\"\\\", \\\"MR\
\\\"]\\), printing information on interactions with \
\\!\\(\\*StyleBox[\\\"\\\\\\\"mathlm\\\\\\\"\\\", \\\"MR\\\"]\\) \"\>"}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"SA.7.6", "6.9"}],

Cell["Ways to debug network license setups. ", "Caption",
  CellTags->"SA.7.6"]
},
FrontEndVersion->"4.0 for X",
ScreenRectangle->{{0, 800}, {0, 600}},
WindowSize->{520, 455},
WindowMargins->{{140, Automatic}, {Automatic, 72}},
StyleDefinitions -> "HelpBrowser.nb"
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of 
the file.  The cache data will then be recreated when you save this file 
from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{
  "SA.7.0"->{
    Cell[1717, 49, 119, 5, 70, "Section",
      CellTags->{"SA.7.0", "0.1"}]},
  "0.1"->{
    Cell[1717, 49, 119, 5, 70, "Section",
      CellTags->{"SA.7.0", "0.1"}]},
  "SA.7.1"->{
    Cell[1839, 56, 115, 2, 70, "Subsection",
      CellTags->{"SA.7.1", "1.1"}],
    Cell[1957, 60, 1823, 37, 70, "Text",
      CellTags->{"SA.7.1", "1.2"}],
    Cell[3783, 99, 151, 5, 70, "Caption",
      CellTags->"SA.7.1"],
    Cell[3937, 106, 479, 10, 70, "Text",
      CellTags->{"SA.7.1", "1.3"}],
    Cell[4419, 118, 844, 18, 70, "Text",
      CellTags->{"SA.7.1", "1.4"}],
    Cell[5266, 138, 64, 1, 70, "Caption",
      CellTags->"SA.7.1"],
    Cell[5333, 141, 272, 6, 70, "Text",
      CellTags->{"SA.7.1", "1.5"}]},
  "1.1"->{
    Cell[1839, 56, 115, 2, 70, "Subsection",
      CellTags->{"SA.7.1", "1.1"}]},
  "1.2"->{
    Cell[1957, 60, 1823, 37, 70, "Text",
      CellTags->{"SA.7.1", "1.2"}]},
  "1.3"->{
    Cell[3937, 106, 479, 10, 70, "Text",
      CellTags->{"SA.7.1", "1.3"}]},
  "1.4"->{
    Cell[4419, 118, 844, 18, 70, "Text",
      CellTags->{"SA.7.1", "1.4"}]},
  "1.5"->{
    Cell[5333, 141, 272, 6, 70, "Text",
      CellTags->{"SA.7.1", "1.5"}]},
  "SA.7.2"->{
    Cell[5608, 149, 73, 1, 70, "Subsection",
      CellTags->{"SA.7.2", "2.1"}],
    Cell[5684, 152, 146, 5, 70, "Text",
      CellTags->{"SA.7.2", "2.2"}],
    Cell[5833, 159, 1031, 27, 70, "Notes",
      CellTags->{"SA.7.2", "2.3"}]},
  "2.1"->{
    Cell[5608, 149, 73, 1, 70, "Subsection",
      CellTags->{"SA.7.2", "2.1"}]},
  "2.2"->{
    Cell[5684, 152, 146, 5, 70, "Text",
      CellTags->{"SA.7.2", "2.2"}]},
  "2.3"->{
    Cell[5833, 159, 1031, 27, 70, "Notes",
      CellTags->{"SA.7.2", "2.3"}]},
  "SA.7.3"->{
    Cell[6867, 188, 72, 1, 70, "Subsection",
      CellTags->{"SA.7.3", "3.1"}],
    Cell[6942, 191, 160, 5, 70, "Text",
      CellTags->{"SA.7.3", "3.2"}],
    Cell[7105, 198, 1472, 38, 70, "Notes",
      CellTags->{"SA.7.3", "3.3"}],
    Cell[8580, 238, 310, 8, 70, "Text",
      CellTags->{"SA.7.3", "3.4"}]},
  "3.1"->{
    Cell[6867, 188, 72, 1, 70, "Subsection",
      CellTags->{"SA.7.3", "3.1"}]},
  "3.2"->{
    Cell[6942, 191, 160, 5, 70, "Text",
      CellTags->{"SA.7.3", "3.2"}]},
  "3.3"->{
    Cell[7105, 198, 1472, 38, 70, "Notes",
      CellTags->{"SA.7.3", "3.3"}]},
  "3.4"->{
    Cell[8580, 238, 310, 8, 70, "Text",
      CellTags->{"SA.7.3", "3.4"}]},
  "SA.7.4"->{
    Cell[8893, 248, 67, 1, 70, "Subsection",
      CellTags->{"SA.7.4", "4.1"}],
    Cell[8963, 251, 275, 7, 70, "Text",
      CellTags->{"SA.7.4", "4.2"}],
    Cell[9241, 260, 1148, 22, 70, "Text",
      CellTags->{"SA.7.4", "4.3"}],
    Cell[10392, 284, 56, 1, 70, "Caption",
      CellTags->"SA.7.4"],
    Cell[10451, 287, 1419, 42, 70, "Text",
      CellTags->{"SA.7.4", "4.4"}]},
  "4.1"->{
    Cell[8893, 248, 67, 1, 70, "Subsection",
      CellTags->{"SA.7.4", "4.1"}]},
  "4.2"->{
    Cell[8963, 251, 275, 7, 70, "Text",
      CellTags->{"SA.7.4", "4.2"}]},
  "4.3"->{
    Cell[9241, 260, 1148, 22, 70, "Text",
      CellTags->{"SA.7.4", "4.3"}]},
  "4.4"->{
    Cell[10451, 287, 1419, 42, 70, "Text",
      CellTags->{"SA.7.4", "4.4"}]},
  "SA.7.5"->{
    Cell[11873, 331, 70, 1, 70, "Subsection",
      CellTags->{"SA.7.5", "5.1"}],
    Cell[11946, 334, 1401, 26, 70, "Text",
      CellTags->{"SA.7.5", "5.2"}],
    Cell[13350, 362, 104, 4, 70, "Caption",
      CellTags->"SA.7.5"],
    Cell[13457, 368, 966, 30, 70, "Text",
      CellTags->{"SA.7.5", "5.3"}]},
  "5.1"->{
    Cell[11873, 331, 70, 1, 70, "Subsection",
      CellTags->{"SA.7.5", "5.1"}]},
  "5.2"->{
    Cell[11946, 334, 1401, 26, 70, "Text",
      CellTags->{"SA.7.5", "5.2"}]},
  "5.3"->{
    Cell[13457, 368, 966, 30, 70, "Text",
      CellTags->{"SA.7.5", "5.3"}]},
  "SA.7.6"->{
    Cell[14426, 400, 85, 1, 70, "Subsection",
      CellTags->{"SA.7.6", "6.1"}],
    Cell[14514, 403, 634, 15, 70, "Text",
      CellTags->{"SA.7.6", "6.2"}],
    Cell[15151, 420, 86, 1, 70, "Caption",
      CellTags->"SA.7.6"],
    Cell[15240, 423, 838, 23, 70, "Text",
      CellTags->{"SA.7.6", "6.3"}],
    Cell[16081, 448, 590, 15, 70, "Text",
      CellTags->{"SA.7.6", "6.4"}],
    Cell[16674, 465, 118, 4, 70, "Caption",
      CellTags->"SA.7.6"],
    Cell[16795, 471, 886, 19, 70, "Text",
      CellTags->{"SA.7.6", "6.5"}],
    Cell[17684, 492, 95, 1, 70, "Caption",
      CellTags->"SA.7.6"],
    Cell[17782, 495, 442, 11, 70, "Text",
      CellTags->{"SA.7.6", "6.6"}],
    Cell[18227, 508, 2266, 40, 70, "Text",
      CellTags->{"SA.7.6", "6.7"}],
    Cell[20496, 550, 127, 5, 70, "Caption",
      CellTags->"SA.7.6"],
    Cell[20626, 557, 783, 24, 70, "Text",
      CellTags->{"SA.7.6", "6.8"}],
    Cell[21412, 583, 1111, 21, 70, "Text",
      CellTags->{"SA.7.6", "6.9"}],
    Cell[22526, 606, 79, 1, 70, "Caption",
      CellTags->"SA.7.6"]},
  "6.1"->{
    Cell[14426, 400, 85, 1, 70, "Subsection",
      CellTags->{"SA.7.6", "6.1"}]},
  "6.2"->{
    Cell[14514, 403, 634, 15, 70, "Text",
      CellTags->{"SA.7.6", "6.2"}]},
  "6.3"->{
    Cell[15240, 423, 838, 23, 70, "Text",
      CellTags->{"SA.7.6", "6.3"}]},
  "6.4"->{
    Cell[16081, 448, 590, 15, 70, "Text",
      CellTags->{"SA.7.6", "6.4"}]},
  "6.5"->{
    Cell[16795, 471, 886, 19, 70, "Text",
      CellTags->{"SA.7.6", "6.5"}]},
  "6.6"->{
    Cell[17782, 495, 442, 11, 70, "Text",
      CellTags->{"SA.7.6", "6.6"}]},
  "6.7"->{
    Cell[18227, 508, 2266, 40, 70, "Text",
      CellTags->{"SA.7.6", "6.7"}]},
  "6.8"->{
    Cell[20626, 557, 783, 24, 70, "Text",
      CellTags->{"SA.7.6", "6.8"}]},
  "6.9"->{
    Cell[21412, 583, 1111, 21, 70, "Text",
      CellTags->{"SA.7.6", "6.9"}]}
  }
*)

(*CellTagsIndex
CellTagsIndex->{
  {"SA.7.0", 23233, 626},
  {"0.1", 23323, 629},
  {"SA.7.1", 23416, 632},
  {"1.1", 23954, 647},
  {"1.2", 24047, 650},
  {"1.3", 24136, 653},
  {"1.4", 24225, 656},
  {"1.5", 24314, 659},
  {"SA.7.2", 24405, 662},
  {"2.1", 24653, 669},
  {"2.2", 24746, 672},
  {"2.3", 24834, 675},
  {"SA.7.3", 24928, 678},
  {"3.1", 25252, 687},
  {"3.2", 25345, 690},
  {"3.3", 25433, 693},
  {"3.4", 25524, 696},
  {"SA.7.4", 25615, 699},
  {"4.1", 26011, 710},
  {"4.2", 26104, 713},
  {"4.3", 26192, 716},
  {"4.4", 26282, 719},
  {"SA.7.5", 26376, 722},
  {"5.1", 26698, 731},
  {"5.2", 26792, 734},
  {"5.3", 26883, 737},
  {"SA.7.6", 26976, 740},
  {"6.1", 28048, 769},
  {"6.2", 28142, 772},
  {"6.3", 28232, 775},
  {"6.4", 28322, 778},
  {"6.5", 28412, 781},
  {"6.6", 28502, 784},
  {"6.7", 28592, 787},
  {"6.8", 28683, 790},
  {"6.9", 28773, 793}
  }
*)

(*NotebookFileOutline
Notebook[{
Cell[1717, 49, 119, 5, 70, "Section",
  CellTags->{"SA.7.0", "0.1"}],
Cell[1839, 56, 115, 2, 70, "Subsection",
  CellTags->{"SA.7.1", "1.1"}],
Cell[1957, 60, 1823, 37, 70, "Text",
  CellTags->{"SA.7.1", "1.2"}],
Cell[3783, 99, 151, 5, 70, "Caption",
  CellTags->"SA.7.1"],
Cell[3937, 106, 479, 10, 70, "Text",
  CellTags->{"SA.7.1", "1.3"}],
Cell[4419, 118, 844, 18, 70, "Text",
  CellTags->{"SA.7.1", "1.4"}],
Cell[5266, 138, 64, 1, 70, "Caption",
  CellTags->"SA.7.1"],
Cell[5333, 141, 272, 6, 70, "Text",
  CellTags->{"SA.7.1", "1.5"}],
Cell[5608, 149, 73, 1, 70, "Subsection",
  CellTags->{"SA.7.2", "2.1"}],
Cell[5684, 152, 146, 5, 70, "Text",
  CellTags->{"SA.7.2", "2.2"}],
Cell[5833, 159, 1031, 27, 70, "Notes",
  CellTags->{"SA.7.2", "2.3"}],
Cell[6867, 188, 72, 1, 70, "Subsection",
  CellTags->{"SA.7.3", "3.1"}],
Cell[6942, 191, 160, 5, 70, "Text",
  CellTags->{"SA.7.3", "3.2"}],
Cell[7105, 198, 1472, 38, 70, "Notes",
  CellTags->{"SA.7.3", "3.3"}],
Cell[8580, 238, 310, 8, 70, "Text",
  CellTags->{"SA.7.3", "3.4"}],
Cell[8893, 248, 67, 1, 70, "Subsection",
  CellTags->{"SA.7.4", "4.1"}],
Cell[8963, 251, 275, 7, 70, "Text",
  CellTags->{"SA.7.4", "4.2"}],
Cell[9241, 260, 1148, 22, 70, "Text",
  CellTags->{"SA.7.4", "4.3"}],
Cell[10392, 284, 56, 1, 70, "Caption",
  CellTags->"SA.7.4"],
Cell[10451, 287, 1419, 42, 70, "Text",
  CellTags->{"SA.7.4", "4.4"}],
Cell[11873, 331, 70, 1, 70, "Subsection",
  CellTags->{"SA.7.5", "5.1"}],
Cell[11946, 334, 1401, 26, 70, "Text",
  CellTags->{"SA.7.5", "5.2"}],
Cell[13350, 362, 104, 4, 70, "Caption",
  CellTags->"SA.7.5"],
Cell[13457, 368, 966, 30, 70, "Text",
  CellTags->{"SA.7.5", "5.3"}],
Cell[14426, 400, 85, 1, 70, "Subsection",
  CellTags->{"SA.7.6", "6.1"}],
Cell[14514, 403, 634, 15, 70, "Text",
  CellTags->{"SA.7.6", "6.2"}],
Cell[15151, 420, 86, 1, 70, "Caption",
  CellTags->"SA.7.6"],
Cell[15240, 423, 838, 23, 70, "Text",
  CellTags->{"SA.7.6", "6.3"}],
Cell[16081, 448, 590, 15, 70, "Text",
  CellTags->{"SA.7.6", "6.4"}],
Cell[16674, 465, 118, 4, 70, "Caption",
  CellTags->"SA.7.6"],
Cell[16795, 471, 886, 19, 70, "Text",
  CellTags->{"SA.7.6", "6.5"}],
Cell[17684, 492, 95, 1, 70, "Caption",
  CellTags->"SA.7.6"],
Cell[17782, 495, 442, 11, 70, "Text",
  CellTags->{"SA.7.6", "6.6"}],
Cell[18227, 508, 2266, 40, 70, "Text",
  CellTags->{"SA.7.6", "6.7"}],
Cell[20496, 550, 127, 5, 70, "Caption",
  CellTags->"SA.7.6"],
Cell[20626, 557, 783, 24, 70, "Text",
  CellTags->{"SA.7.6", "6.8"}],
Cell[21412, 583, 1111, 21, 70, "Text",
  CellTags->{"SA.7.6", "6.9"}],
Cell[22526, 606, 79, 1, 70, "Caption",
  CellTags->"SA.7.6"]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)

