Sorry, that won't work under windows...
have you looked at
http://www.latenighthacking.com/projects/2003/sendSignal/ ?
You can call GenerateConsoleCtrlEvent, or write something to wrap around
it. But that will only send a ctrl-c to a process in the same group,
which presumably is ok as it started from the same console...
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/ge
nerateconsolectrlevent.asp)
Hope that helps!
> How about "kill -2 PID" ?
>
[quoted text clipped - 15 lines]
>>
>>-mike
Michael Grove - 14 Jun 2005 02:07 GMT
thanks for the link. i was able to modify the source to SendSignal,
replacing every CTRL_BREAK_EVENT with CTRL_C_EVENT, and the program does
what i want. fairly complex - you have to inject a thread into the JVM
process, then send it the CTRL_C_EVENT - but it's the only solution i'm
aware of right now.
thanks again.
-mike
> Sorry, that won't work under windows...
> have you looked at
[quoted text clipped - 29 lines]
>>>
>>>-mike