Re: PoCo::Child

2004-12-18 Thread Erick Calder
 From: Mike Schroeder [EMAIL PROTECTED]
 Organization: DonorWare LLC
 Date: Tue, 14 Dec 2004 16:12:31 -0700
 To: [EMAIL PROTECTED]
 Subject: PoCo::Child
 
 The PoCo::Child examples all use ls as the child program.

Mike, for examples of how to read/write, see the PoCo::Player components
e.g. Mp3, Enc, Slideshow.

 However, I'm not sure how to get rid of the thing!  When I am done
 sending info to the STDIN, I send a $c-quit(), (and checking the
 process list the process is indeed gone), but something seems to be
 hanging on -- POE won't wrap up and clean up after itself -- it just
 hangs.  I tried using PoCo::DebugShell, but PoCo::DebugShell and
 PoCo::Child seem to fight over STDOUT:

this likely has to do with the fact that ::Child is not closing the pipe...
Philip Gwyn sent me a patch months ago but only now am I getting around to
applying it.  I should have something ready for release soon.  will post to
this list then.

- ekkis




Re: PoCo::Child

2004-12-18 Thread Mike Schroeder
Erick Calder wrote:
Mike, for examples of how to read/write, see the PoCo::Player components
e.g. Mp3, Enc, Slideshow.
 

Thanks Erick -- that's exactly what I did and got it working for the 
most part.

However, I'm not sure how to get rid of the thing!  When I am done
sending info to the STDIN, I send a $c-quit(), (and checking the
process list the process is indeed gone), but something seems to be
hanging on -- POE won't wrap up and clean up after itself -- it just
hangs.  I tried using PoCo::DebugShell, but PoCo::DebugShell and
PoCo::Child seem to fight over STDOUT:
   

this likely has to do with the fact that ::Child is not closing the pipe...
Philip Gwyn sent me a patch months ago but only now am I getting around to
applying it.  I should have something ready for release soon.  will post to
this list then.
 

Great to hear -- this is the only remaining issue for me with the great 
component.

Regards,
Mike.


RE: PoCo::Child

2002-09-19 Thread Rob Bloodgood

It didn't install for me:

ok 1 - use PoCo::Child
ok 2 - session created
ok 3 - read-only client started
ok 4 - got stdout
ok 5 - second instance
ok 6 - got stderr
ok 7 - done
ok 8 - hard callbacks
ok 9 - interactive client started
ok 10 - client write
ok 11 - quit tested
ok 12 - client restarted
not ok 13 - client died! []:
# Failed test (test.pl at line 128)
not ok 14 - client died! []:
# Failed test (test.pl at line 128)
ok 15 - killed
ok 16 - all tests successful
# Looks like you planned 14 tests but ran 2 extra.
make: *** [test_dynamic] Error 4
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

What can I check?  It's Linux, Redhat 7.1.

L8r,
Rob

-Original Message-
From: Erick Calder [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 9:49 PM
To: [EMAIL PROTECTED]
Subject: PoCo::Child


Rocco thought it'd be useful to have a component made out of POE::Wheel::Run
so as to eliminate having to create an interim session just to receive
events from the wheel... so I've put one together under the name in the
subject header.  It should be available on CPAN or you can pick up a copy
from:

http://perl.arix.com

hope you find it useful.  any patches can be sent to [EMAIL PROTECTED]  I can
be found on EFNet's #poe as ekkis.

- e

the pain of living life this way, must take its toll on you someday...
- Paradise Lost




RE: PoCo::Child

2002-09-19 Thread Erick Calder

 FYI, the link on perl.arix.com seems to be broken:

 http://perl.arix.com/POE-Component-Child-1.7.tar.gz

thx.  I've fixed it.

-Original Message-
From: Peter Chen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 7:11 AM
To: Erick Calder
Cc: [EMAIL PROTECTED]
Subject: Re: PoCo::Child


On Thu, 2002-09-19 at 00:49, Erick Calder wrote:
 Rocco thought it'd be useful to have a component made out of
POE::Wheel::Run
 so as to eliminate having to create an interim session just to receive
 events from the wheel... so I've put one together under the name in the
 subject header.  It should be available on CPAN or you can pick up a copy
 from:

   http://perl.arix.com

 hope you find it useful.


That's great.  I found it on CPAN

http://search.cpan.org/author/ECALDER/POE-Component-Child-1.7/Child.pm

FYI, the link on perl.arix.com seems to be broken:

http://perl.arix.com/POE-Component-Child-1.7.tar.gz

Pete