This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 12.20, “An index of methods available to run external system commands.”
The following tables list the methods of the scala.sys.process package that you can use when running external (system) commands.
Methods to execute external commands
Table 12-1 lists the methods that you can use to execute system commands.
Table 12-1. Methods to execute system commands