Execute a system command: Difference between revisions

Content added Content deleted
(add m4)
Line 293: Line 293:
local f = io.popen("ls") -- store the output in a "file"
local f = io.popen("ls") -- store the output in a "file"
print( f:read("*a") ) -- print out the "file"'s content</lang>
print( f:read("*a") ) -- print out the "file"'s content</lang>

=={{header|M4}}==
<lang M4>
syscmd(ifdef(`__windows__',`dir',`ls'))
</lang>


=={{header|MAXScript}}==
=={{header|MAXScript}}==