T
Tony Stock
Hi all,
problem - need to read a log (text) file looking for certain entries,
this file will still be written to by another 3rd party process, and
hence constantly require monitoring (dare I say tailing ?)
Is it possible / practical / efficient to 'tail' a log file using c.
Questions are :
1. If I was reading file and I reached EOF, would I see new file
writes - or would I have to re-open file to see new additions to it ?
2. Would I use unix 'tail' command fed into a c program ?
3. Any advice appreciated ?
Cheers
Tony
problem - need to read a log (text) file looking for certain entries,
this file will still be written to by another 3rd party process, and
hence constantly require monitoring (dare I say tailing ?)
Is it possible / practical / efficient to 'tail' a log file using c.
Questions are :
1. If I was reading file and I reached EOF, would I see new file
writes - or would I have to re-open file to see new additions to it ?
2. Would I use unix 'tail' command fed into a c program ?
3. Any advice appreciated ?
Cheers
Tony