Re: Asynchronous pipe I/O

2008-11-06 Thread rihad
Nate Eldredge wrote: sh prog1 tmpfile tail -f -c +0 tmpfile | sh prog2 BTW, I don't think this would solve my problem as tail -f would block waiting for more data, as would prog2, so after prog1 finishes writing data they would block indefinitely on input. I forgot to mention this was

Asynchronous pipe I/O

2008-11-05 Thread rihad
Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 | buffer | sh prog2 I first thought that the aptly named

Re: Asynchronous pipe I/O

2008-11-05 Thread Nate Eldredge
On Wed, 5 Nov 2008, rihad wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 | buffer | sh prog2 [and

Re: Asynchronous pipe I/O

2008-11-05 Thread Peter Jeremy
On 2008-Nov-05 17:40:11 +0400, rihad [EMAIL PROTECTED] wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 |

Re: Asynchronous pipe I/O

2008-11-05 Thread rihad
Nate Eldredge wrote: On Wed, 5 Nov 2008, rihad wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to never block: sh prog1 | buffer

Re: Asynchronous pipe I/O

2008-11-05 Thread rihad
Peter Jeremy wrote: On 2008-Nov-05 17:40:11 +0400, rihad [EMAIL PROTECTED] wrote: Imagine this shell pipeline: sh prog1 | sh prog2 As given above, prog1 blocks if prog2 hasn't yet read previously written data (actually, newline separated commands) or is busy. What I want is for prog1 to