Re: file race question
- From: mmccaws2 <mmccaws@xxxxxxxxxxx>
- Date: Tue, 09 Oct 2007 18:45:06 -0700
On Sep 27, 8:50 pm, Cydrome Leader <prese...@xxxxxxxxxxxxxx> wrote:
mmccaws2 <mmcc...@xxxxxxxxxxx> wrote:
Hi
I have a tail -f operation on a syslog file dumping grepped output
into another file, grep.txt. I need to process then empty that file,
grep.txt, once a minute. How do I do this ensuring that I don't loose
new data from the tail -f operation.
Thanks
mike
You may want to use tail -F (uppercase) to tail that syslog file if you
can. That flag will tail even rotated syslog files, vs. just stopping when
it gets rotated out by whatever rotates your logs.
This doesn't work with all ways of rotating a file, but it should work
with any that are done correctly.
Great suggestion. I'll look into it.
Mike
.
- Prev by Date: swapping VA7100 controllers with VA7410 controllers
- Next by Date: Re: swapping VA7100 controllers with VA7410 controllers
- Previous by thread: swapping VA7100 controllers with VA7410 controllers
- Next by thread: Re: file race question
- Index(es):
Relevant Pages
|
|