in reply to Tk Form GUI / external process error
What you need to do is spawn your external process, so that you get a pid returned for the process spawned. Then you can "kill -9 ( me ducks :-) ) the pid from the parent process. Just choose a way to spawn the external process, and stuff the returned pid into a hash. Then you can retreive and kill that pid. You may also need to use Proc::KillFam, since often, the spawning first gets a shell, then the shell runs the program. But if you killfam the shell's pid, you get it's descendants too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk Form GUI / external process error
by honyok (Sexton) on Mar 26, 2009 at 18:17 UTC | |
by zentara (Cardinal) on Mar 26, 2009 at 20:16 UTC | |
by honyok (Sexton) on Mar 27, 2009 at 14:08 UTC | |
by zentara (Cardinal) on Mar 27, 2009 at 15:06 UTC | |
|
Re^2: Tk Form GUI / external process error
by honyok (Sexton) on Mar 26, 2009 at 16:29 UTC |