Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.