How I can send a signal to a process

Advertisement
I use a Process.start() to run a extenal program, then I want to send a signal, such as ^C etc to this program.
The process class is too simple to do this.
How can I do this?
thank
Advertisement

Replay

I use a Process.start() to run a extenal program,
then I want to send a signal, such as ^C etc tothis
program.
The process class is too simple to do this.
How can I do this?If Process is too simple: JNIThanks first.
I tried to use JNI. But I can't get the native Output/Error output.
How can I get the native's Output? Or is there a method like Process.getInputStream()/getErrorStream()?
thanks