On 21/01/19 12:27, Peng Yu wrote: > Hi, > > I use tail -f to show a file as it grows. However, if the process > which writes to the file is finished, tail -f will still wait there. > Is there a way to let tail -f finish once it detects nobody writes to > the file? Thanks.
tail has the --pid option, to wait until a particular process exits. Even though inotify is supported on some systems IN_CLOSE_WRITE is not used at this time. thanks, Pádraig
