Packages

class Process[F[_], Out, Err, OutResult, ErrResult, IRS <: RedirectionState, ORS <: RedirectionState, ERS <: RedirectionState] extends ProcessNode[Out, Err, IRS, ORS, ERS]

Represents a single system process

Do not construct Process directly. Use the companion object instead.

Out

Output stream element type

Err

Error stream element type

OutResult

Result type of running the output stream

ErrResult

Result type of running the error stream

IRS

Input channel redirection state

ORS

Output channel redirection state

ERS

Error channel redirection state

Linear Supertypes
ProcessNode[Out, Err, IRS, ORS, ERS], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Process
  2. ProcessNode
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Process(command: String, arguments: List[String], workingDirectory: Option[Path], inputSource: ProcessInputSource[F], outputTarget: ProcessOutputTarget[F, Out, OutResult], errorTarget: ProcessErrorTarget[F, Err, ErrResult], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String])

    command

    The command to start the process with

    arguments

    List of arguments to be passed to the process

    workingDirectory

    Working directory for the process

    inputSource

    Redirection of the input channel

    outputTarget

    Redirection of the output channel

    errorTarget

    Redirection of the error channel

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val arguments: List[String]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val command: String
  8. val environmentVariables: Map[String, String]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. val errorTarget: ProcessErrorTarget[F, Err, ErrResult]
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def in(workingDirectory: Path): Process[F, Out, Err, OutResult, ErrResult, IRS, ORS, ERS]

    Defines a process with an overwritten working directory

    Defines a process with an overwritten working directory

    Allows the following convenient syntax:

    val process = Process("ls", List("-hal")) in (home / "tmp")
    workingDirectory

    The working directory to run the process in

    returns

    Returns a process with the working directory set

  16. val inputSource: ProcessInputSource[F]
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val outputTarget: ProcessOutputTarget[F, Out, OutResult]
  22. val removedEnvironmentVariables: Set[String]
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. def with(nameValuePair: (String, String)): Process[F, Out, Err, OutResult, ErrResult, IRS, ORS, ERS]

    Adds a custom environment variable to the defined process

    Adds a custom environment variable to the defined process

    Allows the following syntax:

    val process = Process("sh", List("-c", "echo $X")) `with` ("X" -> "something")
    nameValuePair

    The environment variable's name-value pair

    returns

    Returns a process with the custom environment variable added

  29. def without(name: String): Process[F, Out, Err, OutResult, ErrResult, IRS, ORS, ERS]
  30. val workingDirectory: Option[Path]

Inherited from ProcessNode[Out, Err, IRS, ORS, ERS]

Inherited from AnyRef

Inherited from Any

Ungrouped