Process (original) (raw)
scala.sys.process.Process
See theProcess companion trait
Methods for constructing simple commands that can then be combined.
Attributes
Companion
Source
Graph
Supertypes
Self type
Members list
Attributes
Example
apply((new java.lang.ProcessBuilder("ls", "-l")) directory new java.io.File(System.getProperty("user.home")))
Inherited from:
Source
Attributes
Example
apply("java" :: javaArgs, params.get("cwd"), "CLASSPATH" -> "library.jar")
Inherited from:
Source
Attributes
Example
apply("java" :: javaArgs, new java.io.File("/opt/app"), "CLASSPATH" -> "library.jar")
Inherited from:
Source
Attributes
Example
apply("java", new java.io.File("/opt/app"), "CLASSPATH" -> "library.jar")
Inherited from:
Source
Creates a scala.sys.process.ProcessBuilder from one or more scala.sys.process.ProcessBuilder.Source, which can then be piped to something else.
This will concatenate the output of all sources. For example:
import scala.sys.process._
import scala.sys.process.Process.cat
import java.net.URL
import java.io.File
val spde = new URL("http://technically.us/spde.html")
val dispatch = new URL("https://dispatchhttp.org/Dispatch.html")
val build = new File("project/build.properties")
cat(spde, dispatch, build) #| "grep -i scala" !
Attributes
Inherited from:
Source
In this article