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

2009-09-26 Thread Olivier Mengué
2009/9/25 woosley. xu. redic...@gmail.com besides, if you write the interactive code like this: my $user = STDIN; chomp $user; $_[HEAP]-{job}-put($user); my $pass = STDIN; chomp $pass; $_[HEAP]-{job}-put($pass); It won't pop up all the message from the child process

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

2009-09-26 Thread chris fedde
2009/9/26 Olivier Mengué olivier.men...@gmail.com: It would be easier if the mailing list admin would reconfigure the list so we get poe@perl.org as the recipient when we choose Reply. More than once I made the mistake of replying only to the post author. Unfortunately that would be exactly

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

2009-09-26 Thread Olivier Mengué
2009/9/24 Andreas Altergott alterg...@mira-consulting.net Please let me (us on the mailing list ;-) ) know if you do. It would be easier if the mailing list admin would reconfigure the list so we get poe@perl.org as the recipient when we choose Reply. More than once I made the mistake of

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

2009-09-26 Thread Erick Calder
On Sep 26, 2009, at 9:52 AM, chris fedde wrote: 2009/9/26 Olivier Mengué olivier.men...@gmail.com: It would be easier if the mailing list admin would reconfigure the list so we get poe@perl.org as the recipient when we choose Reply. More than once I made the mistake of replying only to

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

2009-09-26 Thread woosley. xu.
Thanks, Olivier, Finally I can get the script working except one problem left: How can I reap child process? Below is my code. If I input CTRL-C when the script asking for a username or password, the script dose not exit even if I use $SIG{CHLD}='IGNORE'. By 'ps -ef', I can see that the

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

2009-09-26 Thread Nick Perez
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 quotes. -- Nicholas Perez XMPP/Email: n...@nickandperla.net http://search.cpan.org/~nperez/

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