This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes about Runtime.getRuntime().exec(shellCmd) create process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic

about Runtime.getRuntime().exec(shellCmd) create process

haifeng zhou

Joined: Oct 30, 2009
Posts: 13
it run in Unix
Runtime.getRuntime().exec() will create child process to excute shell script
and if I kill parent process, the child process will aslo exit
so, does any way to prevent child process exit???
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41088
Welcome to JavaRanch. Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.

Ping & DNS - my free Android networking tools app
Don't get me started about those stupid light bulbs.
subject: about Runtime.getRuntime().exec(shellCmd) create process
Similar Threads
Unsuccessful termination of Runtime.exitValue
Closing Applications
aboue Runtime.getRuntime().exec() create process
how to call .exe file by clicking the JButton..?
Pass Data to outputstream