ProcessLike

sealed trait ProcessLike extends AutoCloseable

Parent type for single processes and process pipelines.

class Object
trait Matchable
class Any

Value members

Abstract methods

override def close(): Unit

Alias for destroy, implemented for java.lang.AutoCloseable

Alias for destroy, implemented for java.lang.AutoCloseable

Definition Classes
def destroy(): Unit

Attempt to destroy the ProcessLike (gently), via the underlying JVM APIs

Attempt to destroy the ProcessLike (gently), via the underlying JVM APIs

Force-destroys the ProcessLike, via the underlying JVM APIs

Force-destroys the ProcessLike, via the underlying JVM APIs

def exitCode(): Int

The exit code of this ProcessLike. Conventionally, 0 exit code represents a successful termination, and non-zero exit code indicates a failure.

The exit code of this ProcessLike. Conventionally, 0 exit code represents a successful termination, and non-zero exit code indicates a failure.

Throws an exception if the subprocess has not terminated

Returns true if the ProcessLike is still running and has not terminated

Returns true if the ProcessLike is still running and has not terminated

def join(timeout: Long): Boolean

Wait up to millis for the ProcessLike to terminate and all stdout and stderr from the subprocess to be handled. By default waits indefinitely; if a time limit is given, explicitly destroys the ProcessLike if it has not completed by the time the timeout has occurred

Wait up to millis for the ProcessLike to terminate and all stdout and stderr from the subprocess to be handled. By default waits indefinitely; if a time limit is given, explicitly destroys the ProcessLike if it has not completed by the time the timeout has occurred

def waitFor(timeout: Long): Boolean

Wait up to millis for the ProcessLike to terminate, by default waits indefinitely. Returns true if the ProcessLike has terminated by the time this method returns.

Wait up to millis for the ProcessLike to terminate, by default waits indefinitely. Returns true if the ProcessLike has terminated by the time this method returns.