Basically the question is in the title. I want to monitor a directory for new files that are written or deleted, the way I can monitor a log file with
tail -f. Is this possible?
Taken from here:
A friend and I tried this a moment ago, it seems that the highlighting doesn't really work correctly, it will highlight a seemingly random selection. I've tried this in an OS X Terminal ssh'd to a RHEL5 machine and my friend has tried in a Ubuntu GUI terminal.
Unfortunately inotifywait is not present on the RHEL5 machine so I can't give any information on the effectiveness of that command.
(By the way, tail -f also uses inotify to follow file changes.)