|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
RE: [PLUG] Basic unix pipe question
|
I was thinking it was program2 that stalling the process,
after I sent it I realized it was program1 where you said the problem was.
> -----Original Message-----
> From: plug-bounces@lists.phillylinux.org
> [mailto:plug-bounces@lists.phillylinux.org]On Behalf Of Walt Mankowski
> Sent: Wednesday, November 01, 2006 9:37 AM
> To: plug@lists.phillylinux.org
> Subject: Re: [PLUG] Basic unix pipe question
>
>
> On Tue, Oct 31, 2006 at 03:28:44PM -0500, George Gallen wrote:
> > you could also use tee
> >
> > # program1 | tee program2
>
> You could try that, but you'll find you'll still have the same
> buffering problem. I should know, I made exactly the same mistake a
> few days ago, and adding fflush(stdout) after each printf fixed it. :)
>
> Walt
>
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|