I have multiple sessions of the following script command simultaneous running in the background on various files. And all running sessions should be appending their results into one log file.
tail –1 –f /dir1/dir2/dir3/$filename | while read RECORD
do
echo `date`”:”$RECORD >> LOGFILE
done
This script works well until a user physically enters one of these files in edit mode. At that time, all logging stops to the LOGFILE, but all sessions still show up as actively running.
How can I make this logging more fault tolerant so that all sessions continue logging?
P.S. Stopping the editing of these files in edit mode is not an option.
-B
birbone@earthlink.net
tail –1 –f /dir1/dir2/dir3/$filename | while read RECORD
do
echo `date`”:”$RECORD >> LOGFILE
done
This script works well until a user physically enters one of these files in edit mode. At that time, all logging stops to the LOGFILE, but all sessions still show up as actively running.
How can I make this logging more fault tolerant so that all sessions continue logging?
P.S. Stopping the editing of these files in edit mode is not an option.
-B
birbone@earthlink.net