Is there a command/program for OS X that allows me to hook to a file and display its changes in realtime without re-opening it, much like "top" monitors system processes in realtime?
You can use
If file is deleted, then created again you may want to use
If same file is being appended too use
If you are doing this on file sync'd by dropbox the chances are it is creating a new file with a different inode so the tail -f command and the less +F command do not work since they are still referencing the old file handle they opened initially.
I suggest trying
It feels hackish but at least every X seconds it will re run tail on the filename giving you the updated output regardless of whether or not the inodes change on the file.
protected by Falcon Momot Nov 17 '14 at 9:43
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?