LoginSignup
0
0

More than 5 years have passed since last update.

scalaで外部プログラムを非同期(hogehoge&)実行

Last updated at Posted at 2015-08-06

scalaのシェル REPLで以下を実行して確認

import scala.sys.process._
Process("perl -e sleep(5);printf(111)") run
Process("perl -e sleep(6);printf(222)") run
Process("perl -e sleep(7);printf(333)") run
Process("perl -e sleep(8);printf(444)") run

ちょっと待つと結果がかえってくる

scala>111222333444
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0