Run external program concurrently and communicate with it through stdin / stdout

后端 未结 5 1812
耶瑟儿~
耶瑟儿~ 2020-12-06 07:17

I want to be able to run an external program concurrently with my Java code, i.e. I want to start the program, then return control to the calling method while keeping the ex

5条回答
  •  悲哀的现实
    2020-12-06 08:13

    I think you will find the Javadoc for class java.lang.Process helpful. Of note, you can get the input and output streams from a Process to communicate with it while it is running.

提交回复
热议问题