Constructor
new (cmd:String, ?args:Array<String>)
Construct a Process object, which run the given command immediately.
Command arguments can be passed in two ways: 1. using args, 2. appending to cmd and leaving args as null.
- 
When using argsto pass command arguments, each argument will be automatically quoted, and shell meta-characters will be escaped if needed.cmdshould be an executable name that can be located in thePATHenvironment variable, or a path to an executable.
- 
When argsis not given or isnull, command arguments can be appended tocmd. No automatic quoting/escaping will be performed.cmdshould be formatted exactly as it would be when typed at the command line. It can run executables, as well as shell commands that are not executables (e.g. on Windows:dir,cd,echoetc).
close() should be called when the Process is no longer used.
Variables
Methods
Close the process handle and release the associated resources.
All Process fields should not be used after close() is called.
exitCode (block:Bool = true):Null<Int>
Available on Neko, macOS, Linux, Windows
Query the exit code of the process.
If block is true or not specified, it will block until the process terminates.
If block is false, it will return either the process exit code if it's already terminated or null if it's still running.
If the process has already exited, return the exit code immediately.