Get system command output: Difference between revisions

Content added Content deleted
Line 368: Line 368:


=={{header|Mathematica}}==
=={{header|Mathematica}}==
<lang Mathematica>RunProcess[{"echo", "hello"}]</lang>
<lang Mathematica>RunProcess["date"]</lang>
{{out}}
{{out}}
<pre><|"ExitCode" -> 0, "StandardOutput" -> "hello", "StandardError" -> ""|></pre>
<pre><|"ExitCode" -> 0, "StandardOutput" -> "Wed Oct 4 14:01:01 BST 2017", "StandardError" -> ""|></pre>



=={{header|Lua}}==
=={{header|Lua}}==