Methods for constructing simple commands that can then be combined.
Creates ascala.sys.process.ProcessBuilder from aString name and aBoolean.
Creates ascala.sys.process.ProcessBuilder from aString name and aBoolean. This can be used to force an exit value, with the name being used fortoString.
Creates ascala.sys.process.ProcessBuilder from aBoolean.
Creates ascala.sys.process.ProcessBuilder from aBoolean. This can be to force an exit value.
Creates ascala.sys.process.ProcessBuilder from ajava.net.URL.
Creates ascala.sys.process.ProcessBuilder from ajava.net.URL. ThisProcessBuilder can then be used as aSource, so that one can pipe things from it.
Creates ascala.sys.process.ProcessBuilder from ajava.io.File.
Creates ascala.sys.process.ProcessBuilder from ajava.io.File. ThisProcessBuilder can then be used as aSource or aSink, so one can pipe things from and to it.
Creates ascala.sys.process.ProcessBuilder from ajava.lang.ProcessBuilder.
Creates ascala.sys.process.ProcessBuilder from ajava.lang.ProcessBuilder.
apply((new java.lang.ProcessBuilder("ls", "-l")) directory new java.io.File(System.getProperty("user.home")))Creates ascala.sys.process.ProcessBuilder with working dir optionally set toFile and extra environment variables.
Creates ascala.sys.process.ProcessBuilder with working dir optionally set toFile and extra environment variables.
apply("java" :: javaArgs, params.get("cwd"), "CLASSPATH" -> "library.jar")Creates ascala.sys.process.ProcessBuilder with working dir optionally set toFile and extra environment variables.
Creates ascala.sys.process.ProcessBuilder with working dir optionally set toFile and extra environment variables.
apply("java", params.get("cwd"), "CLASSPATH" -> "library.jar")Creates ascala.sys.process.ProcessBuilder with working dir set toFile and extra environment variables.
Creates ascala.sys.process.ProcessBuilder with working dir set toFile and extra environment variables.
apply("java" :: javaArgs, new java.io.File("/opt/app"), "CLASSPATH" -> "library.jar")Creates ascala.sys.process.ProcessBuilder with working dir set toFile and extra environment variables.
Creates ascala.sys.process.ProcessBuilder with working dir set toFile and extra environment variables.
apply("java", new java.io.File("/opt/app"), "CLASSPATH" -> "library.jar")Creates ascala.sys.process.ProcessBuilder from a command represented by aString, and a sequence ofString representing the arguments.
Creates ascala.sys.process.ProcessBuilder from a command represented by aString, and a sequence ofString representing the arguments.
apply("cat", files)Creates ascala.sys.process.ProcessBuilder from a sequence ofString, where the head is the command and each element of the tail is a parameter.
Creates ascala.sys.process.ProcessBuilder from a sequence ofString, where the head is the command and each element of the tail is a parameter.
apply("cat" :: files)Creates ascala.sys.process.ProcessBuilder from aString, including the parameters.
Creates ascala.sys.process.ProcessBuilder from aString, including the parameters.
apply("cat file.txt")Creates a sequence ofscala.sys.process.ProcessBuilder.Source from a sequence of something else for which there's an implicit conversion toSource.
Creates a sequence ofscala.sys.process.ProcessBuilder.Source from a sequence of something else for which there's an implicit conversion toSource.
Creates ascala.sys.process.ProcessBuilder from a non-empty sequence ofscala.sys.process.ProcessBuilder.Source, which can then be piped to something else.
Creates ascala.sys.process.ProcessBuilder from a non-empty sequence ofscala.sys.process.ProcessBuilder.Source, which can then be piped to something else.
This will concatenate the output of all sources.
Creates ascala.sys.process.ProcessBuilder from one or morescala.sys.process.ProcessBuilder.Source, which can then be piped to something else.
Creates ascala.sys.process.ProcessBuilder from one or morescala.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.catimport java.net.URLimport java.io.Fileval 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" !