Anonymous user
Execute a system command: Difference between revisions
→{{header|Ruby}}: ++ smalltalk
(Modula-3) |
(→{{header|Ruby}}: ++ smalltalk) |
||
Line 420:
=={{header|Ruby}}==
# runs command and returns its STDOUT as a string
string = %x{ls}
Line 432:
exec "ls"
# replace current process with another</lang>
=={{header|Smalltalk}}==
<lang smalltalk>Smalltalk system: 'ls'.</lang>
=={{header|Tcl}}==
|