system


Purpose
Execute an external program.
Synopsis
procedure system(command:string)
Argument
command 
The command to be executed
Example
The following displays the functionality of the mmsystem module using the program mosel:
system('mosel -s -c "exam mmsystem"') 
Further information
1. The given program is executed directly: if the specified expression is a shell command, it is necessary to call the shell explicitly. For instance to get a directory listing under Windows the command will be "cmd /C dir".
2. Using this procedure should be avoided in applications that are to be run on different systems because such a call is always system dependent and may not be portable.
3. The generated process inherits the current system environment plus the environment variables modified/created using the setenv procedure.
4. The default output and error streams of the generated process are redirected to the corresponding Mosel streams. The default input stream is closed. Note that under Windows, the redirection of streams requires the external program mmredir.exe.
5. This procedure is included in the published interface of mmsystem (see Section Published library functions).


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.