Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: My 10 liner alert log monitoring WORKING shell Script !!! Comments Please !!!!
> You can not worry about a daemon restart if you use 'tail --follow=name
> alertSID.log'.
What version of tail you're referring to? -f
and --follow[={name|descriptor}] are synonyms (checked for tail (coreutils)
4.5.3)
and not available for the commercial versions (checked for SunOS 5.8 Generic
111225-02
and tail.c $Date: 2004/06/03 02:56:22 $Revision: r11.11/4 PATCH_11.11
(PHCO_27138) for HP-UX B.11.11 ).
-f, --follow[={name|descriptor}] output appended data as the file grows; -f, --follow, and --fol- low=descriptor are equivalent
May be you wanted to say -retry, available on some tail versions (Linux):
--retry keep trying to open a file even if it is inaccessible when tail starts or if it becomes inaccessible later -- useful only with -f
or
-F same as --follow=name --retry
Which could be the solution.
Regards
Dimitre
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Nov 03 2006 - 12:52:22 CST
![]() |
![]() |