Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there anything like tail –f that also works well with binary files and supports exit conditions like "on pid X death" or so?

share|improve this question
up vote 2 down vote accepted

ISTM that tail –f works with binary files.  Is there any particular requirement you have that you believe tail won’t satisfy?

The original philosophy on Unix was to keep things simple.  While its commercialization may have taken it away from that principle, I wouldn’t expect to find a single program that did file I/O and also monitored the health of other processes.  The best way to get the exit conditions you want may be to write a shell script and wrap it around tail –f.

share|improve this answer
Indeed, combined with --pid= will accomplish the task quite well. – charlesbridge Nov 16 '12 at 19:38
Hmm, right, unix philosophy. I should keep that in my mind a bit more. – thejh Nov 16 '12 at 21:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .