21 reputation
13
bio website
location
age
visits member for 2 years, 6 months
seen Sep 30 '11 at 22:25

Jan
9
awarded  Notable Question
Nov
15
awarded  Popular Question
Sep
30
comment How to add a timestamp to each line of a logfile?
In addition to my previous comment; See my revised question. The program recreates the file, which most likely causes the script as well as tail to fail, since there's no more fifo to read from.
Sep
30
awarded  Editor
Sep
30
revised How to add a timestamp to each line of a logfile?
Add note about logfile being receated
Sep
30
comment How to add a timestamp to each line of a logfile?
@Nils You linked to the question, not a specific answer. Furthermore all those examples only appear to be working with output on stdout, which I do not have. This is getting close (needs adding a timestamp). Please also note that I updated the question.
Sep
30
awarded  Student
Sep
30
comment How to add a timestamp to each line of a logfile?
I tried doing that but ran into a few problems; To test whether things work, I use tail -F foo.log (is that alright or does it cause more trouble?). The program sometimes reopens the logfile. It seems like the output from tail is buffered in some way. Furthermore the program seems to freeze when reopening the logfile (it does not react to input on stdin anymore).
Sep
30
asked How to add a timestamp to each line of a logfile?