trailing a growing file
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.
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.
More information about the erlang-questions