Results 1 to 3 of 3
- 01-06-2009, 03:25 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 64
- Rep Power
- 0
Java subprocesses via Runtime.exec() and windows "end process tree"...
...is there any way to spawn a process in java whether it be internal to java or some workaround that does not tie the original java app to the subprocess? For instance assume the following:
Process1 runs Process2
If someone performs an "end process" in windows task manager on Process1 then Process2 still stays alive however if someone performs an "end process tree" on Process1 then both Process1 and Process2 are killed because Process2 was started by Process1. Is there any way to run Process2 from Process1 without associating the two in a process tree so performing an "end process tree" on Process1 does not kill Process2?
- 01-06-2009, 03:46 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 8
In unix you would use the "nohup" command. Try googling for something like "windows equivalent to nohup".
- 01-06-2009, 03:53 PM #3
Similar Threads
-
Java, Military Format using "/" and "%" Operator!!
By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM -
help with "Runtime.getRuntime().exec(this.command);"
By itaipee in forum New To JavaReplies: 6Last Post: 12-29-2008, 02:47 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
runtime.exec stale process
By karine in forum Advanced JavaReplies: 6Last Post: 10-06-2008, 05:40 PM -
Cannot choose runtime server, "Windows -> Preferences -> Server" does not exist!!
By TennSeven in forum EclipseReplies: 0Last Post: 09-18-2008, 05:07 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks