<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=NM</id>
	<title>NM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=NM"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=NM&amp;action=history"/>
	<updated>2026-08-05T17:21:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=NM&amp;diff=724&amp;oldid=prev</id>
		<title>ConvertBot: oneshot NeXtMidas command interface for OS, NeXtMidas and X-Midas shells</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=NM&amp;diff=724&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:38Z</updated>

		<summary type="html">&lt;p&gt;oneshot NeXtMidas command interface for OS, NeXtMidas and X-Midas shells&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;oneshot NeXtMidas command interface for OS, NeXtMidas and X-Midas shells&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;command string&amp;gt; - The command to run [DEF=&amp;quot;&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
This explain file covers running from:&lt;br /&gt;
  * OS&lt;br /&gt;
  * NeXtMidas Shell&lt;br /&gt;
  * X-Midas Shell&lt;br /&gt;
&lt;br /&gt;
This will run a NeXtMidas command. How the command is run depends on where NM&lt;br /&gt;
is run from.&lt;br /&gt;
&lt;br /&gt;
RUN FROM OS SHELL:&lt;br /&gt;
  With no arguments, nm gets the user into the shell. With arguments, it enters&lt;br /&gt;
  the shell, executes the command, and exits the shell (this is called one-shot&lt;br /&gt;
  mode).&lt;br /&gt;
&lt;br /&gt;
  As of NeXtMidas 2.0.0 there are 3 commands that are treated specially by the&lt;br /&gt;
  &amp;quot;nm&amp;quot; script:&lt;br /&gt;
     nm MAKE &amp;lt;func&amp;gt; &amp;lt;opt&amp;gt;       - Builds the boot classes before running the&lt;br /&gt;
                                  normal MAKE command.&lt;br /&gt;
     nm EDIT &amp;lt;cmd&amp;gt; &amp;lt;area&amp;gt; &amp;lt;opt&amp;gt; - This runs the nmedit script.&lt;br /&gt;
     nm END                     - This runs the nmend script.&lt;br /&gt;
&lt;br /&gt;
  When run from the OS Shell the NM command has special options used to set Java&lt;br /&gt;
  environment variables. Run &amp;quot;nm -HELP&amp;quot; to see a complete list of options.&lt;br /&gt;
&lt;br /&gt;
  It is important to note that quotes (&amp;quot;...&amp;quot;) may be stripped off by some OS&lt;br /&gt;
  shells before they get into the NeXtMidas session. One way to work around&lt;br /&gt;
  this (in Unix) is to add extra single-tic quotes ('...') around the entire&lt;br /&gt;
  command line. For example, rather than using this:&lt;br /&gt;
&lt;br /&gt;
    $ nm mycommand &amp;quot;jdbc:oracle:thin@host:port:stuff&amp;quot; &amp;quot;user&amp;quot; &amp;quot;pass&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  Use this:&lt;br /&gt;
&lt;br /&gt;
    $ nm 'mycommand &amp;quot;jdbc:oracle:thin@host:port:stuff&amp;quot; &amp;quot;user&amp;quot; &amp;quot;pass&amp;quot;'&lt;br /&gt;
         ^                                                          ^&lt;br /&gt;
&lt;br /&gt;
RUN FROM NEXTMIDAS SHELL:&lt;br /&gt;
  This is not supported, at this time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RUN FROM X-MIDAS SHELL:&lt;br /&gt;
  The NM command manages all interaction with the shared Java VM that is used to&lt;br /&gt;
  run NeXtMidas commands. The NM command has the following functions:&lt;br /&gt;
    NM/ON/BG/ID=999    - Starts the shared Java VM and initializes NeXtMidas&lt;br /&gt;
                         classes. NOTE: The /ID switch is optional but necessary&lt;br /&gt;
                         to allow subsequent NM commands to send and receive&lt;br /&gt;
                         messages.&lt;br /&gt;
    NM &amp;lt;cmd&amp;gt;           - Runs a command in NeXtMidas (similar to one-shot mode).&lt;br /&gt;
    NM/OFF             - Stops the shared Java VM.&lt;br /&gt;
&lt;br /&gt;
  When running from X-Midas, X-Midas will pre-translate ALL carets before the&lt;br /&gt;
  command line is passed to NeXtMidas, for example:&lt;br /&gt;
    X-Midas&amp;gt; res x 2&lt;br /&gt;
    X-Midas&amp;gt; nm res x 3&lt;br /&gt;
    X-Midas&amp;gt; nm calc y ^x 1 +      &amp;lt;-- X-Midas translates &amp;quot;^X&amp;quot; to &amp;quot;2&amp;quot;&lt;br /&gt;
    Calc: Y = 3.0&lt;br /&gt;
&lt;br /&gt;
  To &amp;quot;preserve&amp;quot; the carets so they are evaluated by NeXtMidas it is necessary&lt;br /&gt;
  to use a double-caret (X-Midas' escape for a caret), for example:&lt;br /&gt;
    X-Midas&amp;gt; res x 2&lt;br /&gt;
    X-Midas&amp;gt; nm res x 3&lt;br /&gt;
    X-Midas&amp;gt; nm calc y ^^x 1 +     &amp;lt;-- X-Midas translates &amp;quot;^^X&amp;quot; to &amp;quot;^X&amp;quot;&lt;br /&gt;
    Calc: Y = 4.0&lt;br /&gt;
&lt;br /&gt;
  For more details, please see the appropriate section in the &amp;quot;NeXtMidas User's&lt;br /&gt;
  Guide.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  X-Midas ONLY:&lt;br /&gt;
    /BG           - Runs the command in the background with respect&lt;br /&gt;
                    to the X-Midas shell.&lt;br /&gt;
    /CLEAN        - Clean up the JVM and message queues (IPC).&lt;br /&gt;
    /CLEANUPATEXIT- Experimental switch to add additional exit hook to try to&lt;br /&gt;
                    cleanup message queue on exit of the JVM and only should be&lt;br /&gt;
                    used with the /ON switch (since NeXtMidas 2.9.0).&lt;br /&gt;
                    Experimental switches can be removed in a future release.&lt;br /&gt;
    /CP=str       - NOTE: This switch is of little at present since X-Midas&lt;br /&gt;
                    uppercases this switch.&lt;br /&gt;
                    Adds elements on the front of the classpath.&lt;br /&gt;
    /DEBUG        - Turns on general debugging messages.&lt;br /&gt;
    /ID=&amp;lt;n&amp;gt;       - With /ON only. Enables messaging for subsequent commands.&lt;br /&gt;
    /JARS=str     - Adds JAR files to the end of the classpath.&lt;br /&gt;
    /JDEBUG       - Turns on debugging messages in the JNI code.&lt;br /&gt;
    /JVMOPTIONS=s - Sets special Java VM flags.&lt;br /&gt;
                    -DNOIMPORTXMPATH=TRUE to disable auto importing of X-Midas&lt;br /&gt;
                    path into NeXtMidas (since NeXtMidas 2.9.0).&lt;br /&gt;
    /KILL         - Alias for /OFF, turns the shared JVM off.&lt;br /&gt;
    /MSGOPT=&amp;lt;opt&amp;gt; - Override which option tree defines the configured messages.&lt;br /&gt;
                    Use NXM for the NeXtMidas SYS option tree, use of SYS&lt;br /&gt;
                    (X-Midas SYS option tree is not supported). This must be&lt;br /&gt;
                    set when NM/ON is done. [DEF=NXM]&lt;br /&gt;
    /OFF          - Turns the shared JVM off.&lt;br /&gt;
    /ON           - Turns the shared JVM on (must be used with /BG).&lt;br /&gt;
    /PN=str       - Sets the process name.&lt;br /&gt;
    /STATUS       - Reports the status of the shared JVM.&lt;br /&gt;
    /VERBOSEGC    - Sets the &amp;quot;-verbose:gc&amp;quot;  flag for the Java VM.&lt;br /&gt;
    /VERBOSEJNI   - Sets the &amp;quot;-verbose:jni&amp;quot; flag for the Java VM.&lt;br /&gt;
    /VERIFYALL    - Sets the &amp;quot;-Xverify:all&amp;quot; flag for the Java VM.&lt;br /&gt;
    /XCHECKJNI    - Sets the &amp;quot;-Xcheck:jni&amp;quot;  flag for the Java VM.&lt;br /&gt;
    /XS=n         - Allows a graphical NeXtMidas primitive to LEARN&lt;br /&gt;
                    window positions (see XPIPE).&lt;br /&gt;
&lt;br /&gt;
See Also: MAKE, EDIT, GENMSGTBL&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>