TAP parsing and standard errors -- changing the problem (was Re: Merging STDOUT and STDERR)

2006-09-22 Thread jerry gay
it is obvious that, in the general case, managing multiple streams on multiple filehandles using existing technologies is a *hard* problem. it does, however (and thanks for the hint barrie) seem possible to solve the problem for special cases--those you can control. On 9/22/06, Barrie Slaymaker <

Re: Merging STDOUT and STDERR

2006-09-22 Thread Barrie Slaymaker
I concur, disentangling untagged, combined STDERR and STDOUT streams is very difficult: the source process' output buffering will cause desynchronization between the two streams and the OS's timeslices my be long enough that you get a lot of output between polls in the parent process. Further

Re: Merging STDOUT and STDERR

2006-09-21 Thread Ovid
From: jerry gay <[EMAIL PROTECTED]> > do you have a test that clearly shows the failure? if so, i can try to > code up an IPC::Run solution. it shouldn't take me very long to > determine if it's feasible. I do have one at home. I'm at work right now, but I'll send it along when I can. The majo

Re: Merging STDOUT and STDERR

2006-09-21 Thread jerry gay
On 9/21/06, Ovid <[EMAIL PROTECTED]> wrote: OK, I'm stuck. I've read through IPC::Open3 and friends, I've looked through CPANPLUS, I've tried to solve this problem but no matter how hard I try, while I can fetch both STDOUT and STDERR, I cannot guarantee that they're in synch. That's my big

Re: Merging STDOUT and STDERR

2006-09-21 Thread Ovid
- Original Message From: demerphq <[EMAIL PROTECTED]> > Well then forget about synchronized two-channel communications. You > can't have everything in this world. :-) Which is why ultimately this needs to be one-channel communication :) Cheers, Ovid -- Buy the book -- http://www.oreil

Re: Merging STDOUT and STDERR

2006-09-21 Thread demerphq
On 9/21/06, Ovid <[EMAIL PROTECTED]> wrote: - Original Message From: demerphq <[EMAIL PROTECTED]> > There is no problem if you do the backtick method I mentioned. > > my $in_sync=`someprocess 2>&1`; > > and it should be in sync. I seem to recall it has to be, but i cant > find the sourc

Re: Merging STDOUT and STDERR

2006-09-21 Thread Ovid
- Original Message From: demerphq <[EMAIL PROTECTED]> > There is no problem if you do the backtick method I mentioned. > > my $in_sync=`someprocess 2>&1`; > > and it should be in sync. I seem to recall it has to be, but i cant > find the source of that claim. But i know that ive never see

Re: Merging STDOUT and STDERR

2006-09-21 Thread demerphq
On 9/21/06, Ovid <[EMAIL PROTECTED]> wrote: OK, I'm stuck. I've read through IPC::Open3 and friends, I've looked through CPANPLUS, I've tried to solve this problem but no matter how hard I try, while I can fetch both STDOUT and STDERR, I cannot guarantee that they're in synch. That's my big

Merging STDOUT and STDERR

2006-09-21 Thread Ovid
OK, I'm stuck. I've read through IPC::Open3 and friends, I've looked through CPANPLUS, I've tried to solve this problem but no matter how hard I try, while I can fetch both STDOUT and STDERR, I cannot guarantee that they're in synch. That's my big problem and So I'm going to head over to Per