trailing a growing file
Joachim Durchholz
joachim.durchholz@REDACTED
Wed Dec 31 09:51:35 CET 2003
Raphael Bellec wrote:
>
> I would like to read logs file as soon as data is written to them.
Another approach:
Organize things so that the log output goes to a pipe.
Use the "tee" command to duplicate the output, one going to another
pipe, the other going to the log file.
Your application can then read the tee'd-off pipe, automatically
blocking when there is no more input and automatically unblocking as
soon as new input becomes available.
HTH
Jo
More information about the erlang-questions
mailing list