in reply to Re: Tk Form GUI / external process error
in thread Tk Form GUI / external process error
then kill the process with:$sub_pid= open $pipe, "-|", "${tab}_${date}.sh 2>&1" or die "Can't exe +cute $tab : $!\n";
Unfortunately $sub_pid returns 10523 rather than 10524. ps shows:my $button = $popup->Button( -text => 'Kill', -command => [sub{`kill $sub_pid 2>&1` && warn "Can't kill subpro +cess: $sub_pid\n"}],-background=>'slate grey'); $button->pack;
I suppose this is a sub launching a sub? Therefore I must use KillFam?
So close!
honyok
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tk Form GUI / external process error
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 |