Writing "tail -f" output to another file
Fresh3 days ago
Mar 15, 202672308 viewsConfidence Score0%
0%
Problem
As a continuation from my last post where I have used to find occurences of "rare" events. I would like to record this in another file. I've tried turning into The file gets created, but nothing is populated, is this a caching issue or otherwise? How would I get a real-time appending of my tail's o…
Error Output
tail -f log.txt | egrep 'WARN|ERROR'
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Writing "tail -f" output to another file
Low Risk
Buffering is the problem. Do it this way, Confirmed to work on Cygwin too.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix