in reply to Possible to have a process monitoring another's stdout asynchronously?

I think you are looking for select or probably more conveniently IO::Select or even POE::Loop::Select.

/J\

  • Comment on Re: Possible to have a process monitoring another's stdout asynchronously?
  • Download Code

Replies are listed 'Best First'.
Re^2: Possible to have a process monitoring another's stdout asynchronously?
by cog (Parson) on Jan 13, 2005 at 12:42 UTC
    I'm not sure what I want to do could be done with any of those...

    As an example, suppose I had STDOUT, wanted to keep it that way (as an output channel) but also wanted to print everything that went to STDOUT to two other files... with one single print.

    I can't see how to do this with IO::Select...

      Perhaps IO::Tee is what you're looking for...

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come