[nylug-talk] odd behavior from tail

Frank D. Greco fgreco at crossroadstech.com
Thu Jul 12 22:31:23 EDT 2007


Running AS4 on dual-dual HP rack and experiencing unexpected behavior 
from 'tail'.

Some process out of my control creates a log file on the local disk.
I need to have this file 'viewable' on an NFS share.  No-brainer, right?

So I write a tiny script that uses 'tail -a' to recreate this file on 
another file
that is on an NFS filesystem.  Works fine for a while, but
occasionally the tail process just unexpectedly stops while the original
file continues to grow.  There is an option to tail that retries the 
file (don't
remember the option off-hand) if the file is inaccessible which I 
also tried...
doesn't help.

As a test, I ran two separate and simultaneous instances of tail -a 
on this file
sending the output to 2 different NFS-ed files (in the same dir).  Sometimes
one fails and the other continues... sometimes the other fails and 
the first continues.
It seems to be random.

Very odd.  Anyone have any idea what's going on here?
Any info is greatly appreciated.

Frank G.
--
+==============================================+
| Crossroads Technologies Inc.                 |
| www.CrossroadsTech dot com                   |
| fgreco at REMOVEtheX!cross!roads!tech!dotXcom|
+==============================================+
--



More information about the nylug-talk mailing list