← ZIO Process docs

Process

zio.process.Process
final case class Process(process: JProcess)

Attributes

Source
Process.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def execute[T](f: JProcess => T): ZIO[Any, CommandError, T]

Access the underlying Java Process wrapped in a blocking ZIO.

Access the underlying Java Process wrapped in a blocking ZIO.

Attributes

Source
Process.scala

Return the exit code of this process.

Return the exit code of this process.

Attributes

Source
Process.scala

Tests whether the process is still alive (not terminated or completed).

Tests whether the process is still alive (not terminated or completed).

Attributes

Source
Process.scala
def kill: ZIO[Any, CommandError, Unit]

Kills the process and will wait until completed. Equivalent to SIGTERM on Unix platforms.

Kills the process and will wait until completed. Equivalent to SIGTERM on Unix platforms.

Attributes

Source
Process.scala

Kills the process and will wait until completed. Equivalent to SIGKILL on Unix platforms.

Kills the process and will wait until completed. Equivalent to SIGKILL on Unix platforms.

Attributes

Source
Process.scala
def pid: ZIO[Any, CommandError, Long]

Returns the native process ID of the process.

Returns the native process ID of the process.

This method requires JDK +9.

Attributes

Source
Process.scala
def stdoutJava: InputStream

Access the standard output as an Java InputStream.

Access the standard output as an Java InputStream.

Attributes

Source
Process.scala

Return the exit code of this process if it is zero. If non-zero, it will fail with CommandError.NonZeroErrorCode.

Return the exit code of this process if it is zero. If non-zero, it will fail with CommandError.NonZeroErrorCode.

Attributes

Source
Process.scala

Inherited methods

def getOutputStream: OutputStream

Attributes

Inherited from:
ProcessPlatformSpecific (hidden)
Source
ProcessPlatformSpecific.scala

Kills the entire process tree and will wait until completed. Equivalent to SIGTERM on Unix platforms.

Kills the entire process tree and will wait until completed. Equivalent to SIGTERM on Unix platforms.

Note: This method requires JDK 9+

Attributes

Inherited from:
ProcessPlatformSpecific (hidden)
Source
ProcessPlatformSpecific.scala

Kills the entire process tree and will wait until completed. Equivalent to SIGKILL on Unix platforms.

Kills the entire process tree and will wait until completed. Equivalent to SIGKILL on Unix platforms.

Note: This method requires JDK 9+

Attributes

Inherited from:
ProcessPlatformSpecific (hidden)
Source
ProcessPlatformSpecific.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

Access the standard error stream.

Access the standard error stream.

Attributes

Source
Process.scala

Access the standard output stream.

Access the standard output stream.

Attributes

Source
Process.scala