Function std.process.system
Execute in a command commandshell.
Deprecated. Please use spawnShell or executeShell
instead. This function will be removed in August 2015.
Prototype
deprecated int system( string command );
Returns
If is null, returns nonzero if the command
interpreter is found, and zero otherwise. If command is not
null, returns -1 on error, or the exit status of commandcommand (which may
in turn signal an error in command's execution).
Note
On Unix systems, the homonym C function (which is accessible
to D programs as core.stdc.stdlib.system)
returns a code in the same format as waitpid,
meaning that C programs must use the WEXITSTATUS macro to
extract the actual exit code from the call. D's system automatically extracts the exit status.
system
Authors
Lars Tandle Kyllingstad, Steven Schveighoffer, Vladimir Panteleev