oops, silly me - (was Re: pipe question)

2003-03-16 Thread shlomo solomon
I'm answering my own post to correct an error in what I wrote. On Saturday 15 March 2003 20:06, shlomo solomon wrote: > And, as I already wrote, although I can't explain it, the buffer problem > disappeared. I know it makes no sense, but the first couple of times I ran It turns out that my testin

Re: pipe question

2003-03-15 Thread shlomo solomon
This thread is interesting, but if people are still trying to help with my original question, let me just repeat that using tee does solve the problem. And since there's been alot of theorizing about C programs and making changes to buffer routines in existing programs, let me just say that (for

Re: pipe question

2003-03-15 Thread Nadav Har'El
On Sat, Mar 15, 2003, Shaul Karl wrote about "Re: pipe question": > Am I right that you could have done it in C (as well as with other > languages) by duplicating the file descriptors, redirecting some of them > and so on? The reason for asking is that bash has some of these

Re: pipe question

2003-03-15 Thread Shaul Karl
On 2003-03-13, shlomo solomon <[EMAIL PROTECTED]>: > I have a script that puts a lot of output on the screen. I want to look for a > particular string in the output, so I pipe the output to GREP. That works > fine, but here's the problem. I also want to see the output on the terminal, > and the pi

Re: pipe question

2003-03-14 Thread Nadav Har'El
On Fri, Mar 14, 2003, shlomo solomon wrote about "Re: pipe question": > So what's my problem? It seems that both the above solutions are writing to a > buffer and the actual screen output is not immediate, but in spurts. Let me > make that clearer. The original script cre

Re: pipe question

2003-03-14 Thread Beni Cherniavsky
On 2003-03-13, shlomo solomon wrote: > I have a script that puts a lot of output on the screen. I want to look for a > particular string in the output, so I pipe the output to GREP. That works > fine, but here's the problem. I also want to see the output on the terminal, > and the pipe to GREP mea

Re: pipe question

2003-03-14 Thread shlomo solomon
On Friday 14 March 2003 12:20, Yedidyah Bar-David wrote: > On Fri, Mar 14, 2003 at 01:23:23AM +0200, Tzafrir Cohen wrote: > > On Thu, Mar 13, 2003 at 11:11:13PM +0200, shlomo solomon wrote: > > > Hi, > > > > I also recall a "multi-cat" or "multi-pipe" file, but can't seem to find > > it anywhere. >

Re: pipe question

2003-03-14 Thread Oron Peled
On Fri, 14 Mar 2003 09:35:55 +0200 shlomo solomon <[EMAIL PROTECTED]> wrote: > So what's my problem? It seems that both the above solutions are writing to a > buffer and the actual screen output is not immediate, but in spurts. That's a result of stdio default behaviour. Each application can cont

Re: pipe question

2003-03-14 Thread Yedidyah Bar-David
On Fri, Mar 14, 2003 at 09:35:55AM +0200, shlomo solomon wrote: > > So what's my problem? It seems that both the above solutions are writing to a > buffer and the actual screen output is not immediate, but in spurts. Let me > make that clearer. The original script creates a few hundred lines of

Re: pipe question

2003-03-14 Thread Yedidyah Bar-David
On Fri, Mar 14, 2003 at 01:23:23AM +0200, Tzafrir Cohen wrote: > On Thu, Mar 13, 2003 at 11:11:13PM +0200, shlomo solomon wrote: > > Hi, > > > > I also recall a "multi-cat" or "multi-pipe" file, but can't seem to find > it anywhere. multitee Didi ==

Re: pipe question

2003-03-13 Thread shlomo solomon
First, thanks to all who answered. I now have a partial solution to my problem. On Friday 14 March 2003 02:23, Omer Zak wrote: > If Shlomo uses X-Window, then he can have his script write its stuff to a > file. > Then in another window, he can run: > tail -f script-output-file > and in a third

Re: pipe question

2003-03-13 Thread Omer Zak
If Shlomo uses X-Window, then he can have his script write its stuff to a file. Then in another window, he can run: tail -f script-output-file and in a third window, he can run: tail -f script-output-file | grep whatever\.\*pattern --- Omer My opinio

Re: pipe question

2003-03-13 Thread Nadav Har'El
On Fri, Mar 14, 2003, Tzafrir Cohen wrote about "Re: pipe question": > tee to a file >.. > I also recall a "multi-cat" or "multi-pipe" file, but can't seem to find > it anywhere. > > Also: can this be done using a more complicated redirectio

Re: pipe question

2003-03-13 Thread Tzafrir Cohen
On Thu, Mar 13, 2003 at 11:11:13PM +0200, shlomo solomon wrote: > Hi, > > I spent a couple of hours looking for this, but I bet one of the bash gurus > can help me here ;-). > > I have a script that puts a lot of output on the screen. I want to look for a > particular string in the output, so I

RE: pipe question

2003-03-13 Thread Tal Achituv
>Hi, > >I spent a couple of hours looking for this, but I bet one of the bash gurus >can help me here ;-). > >I have a script that puts a lot of output on the screen. I want to look for a >particular string in the output, so I pipe the output to GREP. That works >fine, but here's the problem. I

Re: pipe question

2003-03-13 Thread Alex Chudnovsky
On Thursday 13 March 2003 23:11, shlomo solomon wrote: > Hi, > > I have a script that puts a lot of output on the screen. I want to look for > a particular string in the output, so I pipe the output to GREP. That works > fine, but here's the problem. I also want to see the output on the > terminal,

pipe question

2003-03-13 Thread shlomo solomon
Hi, I spent a couple of hours looking for this, but I bet one of the bash gurus can help me here ;-). I have a script that puts a lot of output on the screen. I want to look for a particular string in the output, so I pipe the output to GREP. That works fine, but here's the problem. I also wan