Execute a system command: Difference between revisions

m (→‎{{header|Perl 6}}: undup declaration)
Line 1,142:
...
.cmd_ls EQUS "ls",0</lang>
 
=={{header|Phix}}==
<lang Phix>string cmd = {"dir","ls"}[platform()-1]
system(cmd)
integer res = system_exec("pause",4)</lang>
system_exec allows you to specify whether you want a command shell or not, and whether to wait for a result. In the case of pause, the 4 signifies that we need a shell and we want to wait for it to complete.
 
=={{header|PHP}}==
7,813

edits