Execute a system command: Difference between revisions

no edit summary
m (Semi-automated edit: Deleted "Bash" (redundant with "UNIX Shell"))
No edit summary
Line 167:
=={{header|Factor}}==
<lang factor>"ls" run-process wait-for-process</lang>
 
=={{header|Fantom}}==
 
The Process class handles creating and running external processes. in/out/err streams can be redirected, but default to the usual stdin/stdout/stderr. So following program prints result of 'ls' to the command line:
 
<lang fantom>
class Main
{
public static Void main ()
{
p := Process (["ls"])
p.run
}
}
</lang>
 
=={{header|Forth}}==
342

edits