Get system command output: Difference between revisions

Content deleted Content added
Moved the Mathematica example below the Lua one where it belongs.
Scala solution added
Line 722:
}</lang>
 
=={{header|Scala}}==
<lang scala>import scala.io.Source
 
val command = "cmd /c echo Time at %DATE% %TIME%"
val p = Runtime.getRuntime.exec(command)
val sc = Source.fromInputStream(p.getInputStream)
println(sc.mkString)</lang>
=={{header|Sidef}}==
Using backticks: