in reply to Re: tail -f multiple nfs files
in thread tail -f multiple nfs files

Thanks for the response. I know this code works, and it works well when only running one instance (one file). However, when I run two instances using two nfs mounted servers, I get the record loss. The block you pointed out is a daily rollover feature. If it detects an EOF while tailing, it will check a file for the next day exists, and then starts tailing that. This way, the script will follow logs that rotate via day.

Replies are listed 'Best First'.
Re: Re: Re: tail -f multiple nfs files
by trs80 (Priest) on Feb 02, 2002 at 01:52 UTC
    Move your for loop into a sub routine. Test for a file change and if the condition is true call the sub again from inside.