Issuing native system commands in Scala
Scala is not different from Java in this area, since you can call any Java API functions using Scala's interop features. See for example, java.lang.ProcessBuilder
.
Best way to do that is to use scala.sys.process.
import scala.sys.process._
val vimLocation: String = "whereis vim" !!
reference