IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Should this work?
tail -f somefile | grep -i something | cut -f 5


What I want is the 'edited highlights' of a process that writes lots of stuff to a log file. But it doesn't, if I use -f. If I tail the file normally then it'll do as it's told, but with -f it just sits there and never finds 'something' even if 'something' has been written to 'somefile'.

Is this a standard Unix behaviour, or is it perhaps Tru64 specific? (I don't have any other Unices at my disposal right now to do a comparison, but if I remember I'll give it a whirl on OS X tonight.)

Cheers,
John.
On and on and on and on,
and on and on and on goes John.
New Strange.
It works right under Linux. Maybe you need to see if tail and/or grep and/or cut have unbuffered modes.

Wade.

"All around me are nothing but fakes
Come with me on the biggest fake of all!"

New Now there's a term I often apply to Tru64 :)
The man pages mention nothing of the sort. Think I'll do some more investigation on what is (mercifully) a slightly slow afternoon.
On and on and on and on,
and on and on and on goes John.
New Yup, it's because of buffering.
[link|http://groups.google.com/groups?q=%22tail+-f%22++tru64+pipe&hl=en&rnum=1&selm=fa.s72g4ov.19lubof%40ifi.uio.no|This article (care of Google Groups) explains it.]


Anyway, once I pumped enough pretend data in my somefile, it eventually spewed out a bunch of output. Which is exactly not how I wanted to do it. Oh well, I didn't *really* need this to work anyway.

Tru64 is not my friend.

(Edit: made the URL a proper link)
On and on and on and on,
and on and on and on goes John.
Expand Edited by Meerkat Oct. 23, 2001, 08:21:09 PM EDT
New Could you make that a real link? It's forcing right scroll.
We have to fight the terrorists as if there were no rules and preserve our open society as if there were no terrorists. -- [link|http://www.nytimes.com/2001/04/05/opinion/BIO-FRIEDMAN.html|Thomas Friedman]
New tail -f somefile | sleep 5 | grep -i something | cut -f 5
might work
or
tail -f somefile | xargs grep -i something | cut -f 5
thanx,
bill
who is 2 lazy to try it over here
tshirt front "born to die before I get old"
thshirt back "fscked another one didnja?"
     Should this work? - (Meerkat) - (5)
         Strange. - (static) - (3)
             Now there's a term I often apply to Tru64 :) - (Meerkat) - (2)
                 Yup, it's because of buffering. - (Meerkat) - (1)
                     Could you make that a real link? It's forcing right scroll. -NT - (drewk)
         tail -f somefile | sleep 5 | grep -i something | cut -f 5 - (boxley)

Able to chew and walk gum at the same time.
42 ms