Bookmark Topic Watch Topic
  • New Topic

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
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???
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to JavaRanch. Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!