am i missing something?

Mike Ballon calzonie at hawaii.rr.com
Thu Nov 16 20:09:07 PST 2000


The tail needs to have the -f argument for what I'm doing, the file would
also have several words to look for.

This will work, there's just something....

----- Original Message -----
From: "Michael_Ferdun" <paix at konaboy.com>
To: "Linux Users Anonymous" <luau at luau.hi.net>
Sent: Thursday, November 16, 2000 5:28 PM
Subject: [luau] am i missing something?


>
>
> 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.
>
>
> ---
> You are currently subscribed to luau as: calzonie at hawaii.rr.com
> To unsubscribe send a blank email to $subst('Email.Unsub')



More information about the LUAU mailing list