<?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=OS</id>
	<title>OS - 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=OS"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=OS&amp;action=history"/>
	<updated>2026-04-12T12:23:24Z</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=OS&amp;diff=699&amp;oldid=prev</id>
		<title>ConvertBot: sends an operating system command to the appropriate OS</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=OS&amp;diff=699&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:30Z</updated>

		<summary type="html">&lt;p&gt;sends an operating system command to the appropriate OS&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;sends an operating system command to the appropriate OS&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;&amp;gt; - The command (in quotes) to be sent&lt;br /&gt;
&lt;br /&gt;
This command send an operating system command to the operating system that is&lt;br /&gt;
running the OS command.  These commands are run internal to the Java Virtual&lt;br /&gt;
Machine (JVM).&lt;br /&gt;
&lt;br /&gt;
Note: Because this command line is run through the parser, the command may need&lt;br /&gt;
to be quoted depending on the characters in the command.&lt;br /&gt;
&lt;br /&gt;
Other ways to execute OS commands:&lt;br /&gt;
=================================&lt;br /&gt;
$ - Forces command to be executed in the shell that is running NeXtMidas&lt;br /&gt;
    (instead of a subshell). This is run from Java and does not affect your&lt;br /&gt;
    UNIX or other shell.&lt;br /&gt;
&lt;br /&gt;
$$ - Forces command to operating system. This will affect your UNIX or other&lt;br /&gt;
     shell.  This is equivalent to running the command directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Perform an OS command without affecting the OS shell&lt;br /&gt;
&lt;br /&gt;
      nM&amp;gt; plot/bg world&lt;br /&gt;
      nM&amp;gt; os ls&lt;br /&gt;
      nM&amp;gt; $ls&lt;br /&gt;
&lt;br /&gt;
    These are equivalent OS commands run from within Java.  The plot&lt;br /&gt;
    will stay up when these return.&lt;br /&gt;
&lt;br /&gt;
  2. Perform an OS command affecting the OS shell&lt;br /&gt;
&lt;br /&gt;
      nM&amp;gt; plot/bg world&lt;br /&gt;
      nM&amp;gt; $$cd ~&lt;br /&gt;
&lt;br /&gt;
    The plot goes away and the directory is changed from the current directory&lt;br /&gt;
    to the user's home directory.&lt;br /&gt;
&lt;br /&gt;
  3. On UNIX platforms:&lt;br /&gt;
&lt;br /&gt;
      nM&amp;gt; os touch myfile&lt;br /&gt;
&lt;br /&gt;
    creates a file in the current directory&lt;br /&gt;
&lt;br /&gt;
  4. Capture output of OS command to results.&lt;br /&gt;
       nM&amp;gt; os/stdout=myres echo hello there&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /STDERR=&amp;lt;res&amp;gt;  Capture standard error of OS command into results in a String.&lt;br /&gt;
                 This will prevent output to terminal. This switch MUST be right&lt;br /&gt;
                 after the command.                                (Since 3.0.0)&lt;br /&gt;
  /STDOUT=&amp;lt;res&amp;gt;  Capture standard output of OS command into results in a String.&lt;br /&gt;
                 This will prevent output to terminal. This switch MUST be right&lt;br /&gt;
                 after the command.                                (Since 3.0.0)&lt;br /&gt;
  /EXITSTATUS=&amp;lt;res&amp;gt;  Capture exit status/value of the OS command into results&lt;br /&gt;
                 label. By convention, 0 indicates success. This switch MUST be&lt;br /&gt;
                 right after the command.                          (Since 3.5.0)&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>