DAZ Script | |
---|---|
Communication | { Stdin, Stdout, Stderr, DupStderr } |
DAZ Script | |
---|---|
Boolean | canReadLineStderr () |
Boolean | canReadLineStdout () |
void | closeStdin () |
void | kill () |
Boolean | launch ( String buffer, Array env=[] ) |
String | readLineStderr () |
String | readLineStdout () |
String | readStderr () |
String | readStdout () |
Boolean | start ( Array env=[] ) |
void | tryTerminate () |
void | writeToStdin ( String buffer ) |
void | launchFinished () |
void | processExited () |
void | readyReadStderr () |
void | readyReadStdout () |
void | wroteToStdin () |
See Also:
Defines the communication channels connected to the process.
Holds an Array of strings. The first being the program to execute, the rest being the command line arguments.
Holds the communication for the process.
Holds the exit status of the program when it has finished. 0 if the process is still running. (Read Only)
Holds whether or not the process has exited normally. (Read Only)
Holds whether or not the process is currently running. (Read Only)
Holds the working directory for the process.
Default Constructor.
Creates a DzProcess object without specifying the program or arguments.
Attention:
Creates a DzProcess object specifying the program and any arguments.
Parameter(s):
Attention:
Creates a DzProcess object specifying only the program, without any arguments.
Parameter(s):
Attention:
Return Value:
true
if it is possible to read an entire line of text from standard error, otherwise false
.Return Value:
true
if it is possible to read an entire line of text from standard output, otherwise false
.void : closeStdin()
Closes the process' standard input and deletes any pending data that has not been written to standard input.
void : kill()
Terminates the process.
Attention:
Boolean : launch( String buffer, Array env=[] )
Attempts to run the process, writing buffer
to the process' standard input. Standard input is closed if all of the data in buffer
is written to it.
Parameter(s):
Return Value:
true
if the process was able to start, otherwise false
.String : readLineStderr()
Return Value:
true
, otherwise an empty string.String : readLineStdout()
Return Value:
true
, otherwise an empty string.String : readStderr()
Reads the data that the process has written to standard error. When new data is written, the readyReadStderr() signal is emitted.
Return Value:
Attention:
String : readStdout()
Reads the data that the process has written to standard output. When new data is written, the readyReadStdout() signal is emitted.
Return Value:
Attention:
Boolean : start( Array env=[] )
Attempts to run the process for the program and arguments specified with the arguments property or as specified in the constructor.
Parameter(s):
Return Value:
true
if the process was able to start, otherwise false
.void : tryTerminate()
Attempts to terminate the process.
Attention:
void : writeToStdin( String buffer )
Writes buffer
to standard input. The process may, or may not, read the data. The wroteToStdin() signal is emitted once all data in buffer
has been written to the process.
Parameter(s):
void : launchFinished()
Signature:“launchFinished()”
Emitted when the process is started with launch(). If starting the process is successful, this signal is emitted after the data passed in has been written to standard input. If starting the process fails, this signal is emitted immediately.
void : processExited()
Signature:“processExited()”
Emitted when the process has exited.
void : readyReadStderr()
Signature:“readyReadStderr()”
Emitted when the process has written data to standard error.
void : readyReadStdout()
Signature:“readyReadStdout()”
Emitted when the process has written data to standard output.
void : wroteToStdin()
Signature:“wroteToStdin()”
Emitted if the data sent to standard input (via writeToStdin()) was actually written to the process.