When I run Process(command), the output of the command is printed out to terminal, but I only want the exitValue().
Is there a way to suppress the output displayed on terminal? I just find sometime the command processed could print a huge output result on terminal. Thanks a lot.
scala> import scala.sys.process._
import scala.sys.process._
scala> Process("ls").run().exitValue()
README.md
Vagrantfile
bin
box
config
package.sh
vendor
res6: Int = 0