Execute a system command: Difference between revisions

Adding MUMPS example
(→‎{{header|Prolog}}: Added PureBasic)
(Adding MUMPS example)
Line 436:
M3toC.FreeCopiedS(command);
END Exec.</lang>
=={{header|MUMPS}}==
<p>ANSI MUMPS doesn't allow access to the operating system except possibly through the View command and $View function, both of which are implementation specific. Intersystems' Caché does allow you to create processes with the $ZF function, and if the permissions for the Caché process allow it you can perform operating system commands.</p>
<p>In Caché on OpenVMS in an FILES-11 filesystem ODS-5 mode this could work:
<lang MUMPS>Set X=$ZF(-1,"DIR")</lang></p>
 
=={{header|Objective-C}}==