Libraries anvil io Process

class Process
extends anvil.lang.object
Native process created by exec.

Methods

void destroy()
Kills the subprocess. The subprocess represented by this Process is forcibly terminated.

int exitValue()
Returns the exit value of process.
Returns Exit value of process, or null if the process is not yet terminated.

OutputStream getErrorStream()
Gets the error stream of the subprocess.

InputStream getInputStream()
Gets the input stream of the subprocess.

OutputStream getOutputStream()
Gets the output stream of the subprocess.

int waitFor()
causes the current thread to wait, if necessary, until the process represented by this Process object hasterminated.
Returns the exit value of the process. By convention, 0 indicates normal termination.
Throws Interrupted -  if the current thread is interrupted by another thread while it is waiting, then the wait is ended and an Interrupted is thrown.