O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Better Management of the OS Process

In this chapter, we will cover the following recipes:

  • Spawning a new process
  • Redirecting the process output and error streams to file
  • Changing the working directory of a subprocess
  • Setting the environment variable for a subprocess
  • Running shell scripts
  • Obtaining the process information of the current JVM
  • Obtaining the process information of the spawned process
  • Managing the spawned process
  • Enumerating live processes in the system
  • Connecting multiple processes using pipe
  • Managing subprocesses

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required