08 Jan 11, 09:57PM
I wasn't saying tail was unreliable I was saying the method of which it is being used is. I know what tail -f does :) I just thought you where using it as an example to see the log visually. If you are saying actually use it in your method to parse logs I am not understanding how it could be used in a more efficient way then just piping the server directly to what you are using to parse the data. Because "tail -f" doesnt stop until you make it stop anything you use to run "tail -f" with will hang forever unless you create a pipe to it thats bidirectional like I did in my php script directly with the server. I suppose it would be a good alternative if parsing the data in the php script running the server become a problem. Moving it to parsing the log with tail -f would work. It's kind of the same solution but using different data sources.