am i missing something?

Michael_Ferdun paix at konaboy.com
Thu Nov 16 19:28:49 PST 2000



think it works for me :)



root at kuuipo:/root# cat > file
pppd
root at kuuipo:/root# tail /var/log/messages|grep -f file
Nov 16 16:05:56 paix pppd[1397]: Serial connection established.
Nov 16 16:05:56 paix pppd[1397]: Using interface ppp0
Nov 16 16:05:56 paix pppd[1397]: Connect: ppp0 <--> /dev/ttyS0
Nov 16 16:05:58 paix pppd[1397]: local  IP address 63.72.207.142
Nov 16 16:05:58 paix pppd[1397]: remote IP address 63.72.207.3
root at kuuipo:/root# tail /var/log/messages|grep -f file > file2
root at kuuipo:/root# cat file2
Nov 16 16:05:56 paix pppd[1397]: Serial connection established.
Nov 16 16:05:56 paix pppd[1397]: Using interface ppp0
Nov 16 16:05:56 paix pppd[1397]: Connect: ppp0 <--> /dev/ttyS0
Nov 16 16:05:58 paix pppd[1397]: local  IP address 63.72.207.142
Nov 16 16:05:58 paix pppd[1397]: remote IP address 63.72.207.3









On Thu, 16 Nov 2000, Chris Wong wrote:

>On Thu, 16 Nov 2000, Joseph Key wrote:
>
>> I did some testing of a tail followed by a grep redirected to a file.  
>> I found that when the command is run without the -f in the tail it
>> works fine. Why are you using -f in tail? 
>
>That's for continuous output.
>
>> I think the problem is to get a useful output you need to end with a
>> control-c this kills the tail and grep before they can redirect.  
>
>No, I think it SHOULD work. I"ll try to research it a bit more.
>
>
>
>---
>You are currently subscribed to luau as: paix at konaboy.com
>To unsubscribe send a blank email to $subst('Email.Unsub')
>

__ 
 
Michael Ferdun, M.S.  http://www.turquoise.net/~paix | paix at konaboy.com 
ICQ# 85495629
__

Humor in the Court:
Q: ...any suggestions as to what prevented this from being a murder trial 
   instead of an attempted murder trial?
A: The victim lived.



More information about the LUAU mailing list