Skip to content

Instantly share code, notes, and snippets.

@vigoo
Created November 22, 2019 17:19
Show Gist options
  • Save vigoo/fbd2ebb4505e66cb2c2ace2e517709e0 to your computer and use it in GitHub Desktop.
Save vigoo/fbd2ebb4505e66cb2c2ace2e517709e0 to your computer and use it in GitHub Desktop.
prox 3/13
import zio.interop.catz._
Blocker[RIO[Console, ?]].use { blocker =>
for {
// ...
_ <- console.putStrLn("Starting external process...")
_ <- (Process[Task]("echo", List("Hello world!")) > tempFile.toPath).start(blocker)
// ...
} yield ()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment