Specifications
Contains the exitStatus of the program when it has finished.
This property is read-only.
exitStatus : Number
Member functions
Tries to run a process for the command and arguments that were
specified with the argument property or that were specified in the
start( env : String[ ] )
constructor. The command is searched for in the path for executable
programs; you can also use an absolute path in the command itself.
If env is not specified, the process is started with the same
environment as the starting process. If env is specified, then the
values in the Array of strings are interpreted as environment settings
of the form VARIABLE=VALUE and the process is started with these
environment settings. If the program could not be started, an
exception is thrown.
Runs the process and writes the data stdin to the process's standard
input. If all the data is written to standard input, standard input
launch( stdin : String, env
: String[ ] )
is closed. The command is searched for in the path for executable
programs; you can also use an absolute path in the command itself.
If env is unspecified, the process is started with the same
environment as the starting process. If env is specified, then the
values in the Array of strings are interpreted as environment settings
of the form VARIABLE=VALUE and the process is started with these
environment settings. If the program could not be started, an
exception is thrown.
Blocks until the process has started or until the specified time (in
seconds) has passed. Returns true if the process was started
waitForStarted ( seconds :
Number )
successfully; returns false if the operation timed out or if an error
occurred.
Blocks until the process has finished or until the specified time (in
seconds) has passed. Returns true if the process finished; returns
false if the operation timed out or if an error occurred.
waitForFinished ( seconds
: Number )
Reads what is currently available on the process's standard output.
readStdout() : String
Reads what is currently available on the process's standard error.
readStderr() : String
Returns true if a line can be read from the process's standard output.
canReadLineStdout() :
Boolean
Returns true if a line can be read from the process's standard error.
canReadLineStderr() :
Boolean
Reads one line of text from the process's standard output if
available; otherwise returns an empty string.
readLineStdout() : String
Reads one line of text from the standard error stream of this process
if available; otherwise returns an empty string.
readLineStderr() : String
424
Enfocus Switch 10