Category Archives: Scala

Run a System Process from Scala

Here’s an example on how to run a System process from Scala. + ProcessBuilder simplifies the creation of the Process object + A Scala Actor reads the console output buffer concurrently + reactWithin allows us to timeout if the process hangs + receiveWithin in the main thread, guards us in case the Actor gets stuck […]

Posted in Scala | Tagged | 2 Comments