Re: run an interactive command using POE::Wheel?

2009-09-28 Thread woosley. xu.
ctrl-c gives a INT signal which is captured by the sub below. When the ctrl-c is captured, the code will kill the job with signal TERM, this should generate a SIGCHLD and make the wheel to exit, not in the state of zombie. sub read_from { my ($input, $exception) = @_[ARG0, ARG1]; my

Re: run an interactive command using POE::Wheel?

2009-09-26 Thread woosley. xu.
); $job $job-kill(); return; } $_[HEAP]-{stdin}-put(got: $input); $_[HEAP]-{job}-put($input); } 2009/9/26 Olivier Mengué olivier.men...@gmail.com 2009/9/25 woosley. xu. redic...@gmail.com besides, if you write the interactive code like this: my $user = STDIN

Re: run an interactive command using POE::Wheel?

2009-09-26 Thread woosley. xu.
type by mistake corrected, but still don't solve the problem. 2009/9/27 Nick Perez n...@nickandperla.net On Sun, 27 Sep 2009 10:59:48 +0800 woosley. xu. redic...@gmail.com wrote: $_[KERNEL]-sig_child($pid, got_child_signal); This is your problem line. Remove '$pid,' from the double

run an interactive command using POE::Wheel?

2009-09-24 Thread woosley. xu.
hi all, I want to run a interactive command using POE::Wheel, I met some problem. Here is my code: ###main.pl use POE qw( Wheel::Run ); POE::Session-create( inline_states = { _start = \on_start, got_child_stdout = \on_child_stdout, got_child_stderr =

Re: run an interactive command using POE::Wheel?

2009-09-24 Thread woosley. xu.
-- Forwarded message -- From: woosley. xu. redic...@gmail.com Date: 2009/9/25 Subject: Re: run an interactive command using POE::Wheel? To: Andreas Altergott alterg...@mira-consulting.net Hi, Andreas, Thanks for your reply. I found if I changed the my code