Trait/Object

scala.sys.process

Process

Related Docs: object Process | package process

Permalink

trait Process extends AnyRef

Represents a process that is running or has finished running. It may be a compound process with several underlying native processes (such as a #&& b).

This trait is often not used directly, though its companion object contains factories for scala.sys.process.ProcessBuilder, the main component of this package.

It is used directly when calling the method run on a ProcessBuilder, which makes the process run in the background. The methods provided on Process make it possible for one to block until the process exits and get the exit value, or destroy the process altogether.

Presently, one cannot poll the Process to see if it has finished.

Source
Process.scala
See also

scala.sys.process.ProcessBuilder

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Process
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def destroy(): Unit

    Permalink

    Destroys this process.

  2. abstract def exitValue(): Int

    Permalink

    Blocks until this process exits and returns the exit code.