Re: tail and grep

1998-07-09 Thread Craig Sanders
On Wed, 8 Jul 1998, Patrick Olson wrote: > On Thu, 9 Jul 1998, Hamish Moffatt wrote: > > > I think you need to somehow ensure that tail isn't used until > > that line isn't written in the log; -f will get it to wait, but will > > never get you any output in the dynamic.IP file. > > That makes go

Re: tail and grep

1998-07-09 Thread Hamish Moffatt
On Wed, Jul 08, 1998 at 09:02:40PM -0700, Patrick Olson wrote: > On Thu, 9 Jul 1998, Hamish Moffatt wrote: > > > I think you need to somehow ensure that tail isn't used until > > that line isn't written in the log; -f will get it to wait, but will > > never get you any output in the dynamic.IP fil

Re: tail and grep

1998-07-09 Thread Patrick Olson
On Thu, 9 Jul 1998, Hamish Moffatt wrote: > I think you need to somehow ensure that tail isn't used until > that line isn't written in the log; -f will get it to wait, but will > never get you any output in the dynamic.IP file. That makes good sense. I never thought about doing it that way (an

Re: tail and grep

1998-07-09 Thread Hamish Moffatt
On Wed, Jul 08, 1998 at 01:09:27PM -0700, Patrick Olson wrote: > > > tail -f /var/log/messages | grep "local IP" > /home/pppusers/dynamic.IP > > > > > > it does nothing but create a 0 byte file. > > > > "tail -f" will run forever; output to the file won't be flushed until you've > > written a ce

Re: tail and grep

1998-07-09 Thread Patrick Olson
> > tail -f /var/log/messages | grep "local IP" > /home/pppusers/dynamic.IP > > > > it does nothing but create a 0 byte file. > > "tail -f" will run forever; output to the file won't be flushed until you've > written a certain amount to the file -- one line obviously isn't enough. > The screen

Re: tail and grep

1998-07-08 Thread Ted Harding
On Tue, 7 Jul 1998, Patrick Olson wrote: > when I try tail -f /var/log/messages | grep "local IP" > > it prints (with a real IP address instead of 123.123.123.123) > > Jul 7 20:06:00 server2 pppd[587]: local IP address 123.123.123.123 > > on my console. That's exactly what it should do. But

Re: tail and grep

1998-07-08 Thread Craig Sanders
On Tue, 7 Jul 1998, Patrick Olson wrote: > when I try tail -f /var/log/messages | grep "local IP" > > it prints (with a real IP address instead of 123.123.123.123) > > Jul 7 20:06:00 server2 pppd[587]: local IP address 123.123.123.123 > > on my console. That's exactly what it should do. Bu

Re: tail and grep

1998-07-08 Thread Hamish Moffatt
On Tue, Jul 07, 1998 at 08:28:37PM -0700, Patrick Olson wrote: > when I try tail -f /var/log/messages | grep "local IP" > > it prints (with a real IP address instead of 123.123.123.123) > > Jul 7 20:06:00 server2 pppd[587]: local IP address 123.123.123.123 > > on my console. That's exactly w