Class brl.process.Process - leonard-thieu/monkey GitHub Wiki
Kill : Void ( exitCode:Int )
ReadStderr : Int ( buffer:DataBuffer, offset:Int, count:Int )
ReadStdout : Int ( buffer:DataBuffer, offset:Int, count:Int )
Start : Void ( cmd:String )
StderrAvail : Int ()
StdoutAvail : Int ()
Wait : Int ()
WriteStdin : Int ( buffer:DataBuffer, offset:Int, count:Int )
Method IsRunning : Bool ()
Returns true is process is currently running.
Kills process.
Method ReadStderr : Int ( buffer:DataBuffer, offset:Int, count:Int )
Reads bytes from process stderr into buffer.
Returns the number of bytes read.
If the process is running and no bytes are available to be read, this method will block until at least 1 byte has been read.
If the process has finished and no bytes are available to be read, this method will return 0.
Method ReadStdout : Int ( buffer:DataBuffer, offset:Int, count:Int )
Reads bytes from process stdout into buffer.
Returns the number of bytes read.
If the process is running and no bytes are available to be read, this method will block until at least 1 byte has been read.
If the process has finished and no bytes are available to be read, this method will return 0.
Starts process.
Returns true if process started successfully.
Method StderrAvail : Int ()
Returns the number of bytes available to be read from process stderr.
Method StdoutAvail : Int ()
Returns the number of bytes available to be read from process stdout.
Method Wait : Int ()
Waits for process to finish and returns process exit code.
Method WriteStdin : Int ( buffer:DataBuffer, offset:Int, count:Int )
Writes bytes from buffer to process stdin.
Runs a process, waits for it to finish, and returns the process stdout output.