I need to tail -f a log file that is rotated.
This is the exact same issue as the one here, but on OS X:
Why does less tail mode stop working?
So how can I constantly track a file whose inode might change under OS X?
|
I need to tail -f a log file that is rotated. This is the exact same issue as the one here, but on OS X: Why does less tail mode stop working? So how can I constantly track a file whose inode might change under OS X?
| ||||
feedback
|
|
From Ubuntu Lucid (coreutils 7.4)
From Mac OS X 10.6 (10A432)
Assuming you want the --follow=/tmp/something.txt behavior on Linux, that would mean on Mac what you want is:
Edit: Just tested on Mac OSX (Snow Leopard) and -F will only open the filename you input, and NOT follow the inode/file descriptor of the file it opened with when it is moved. | |||||
feedback
|