Re: tail dans la duree

Top Page

Reply to this message
Author: Olivier Delemar
Date:  
To: guilde
Subject: Re: tail dans la duree

Le 19-Jan-00, Patrice Karatchentzeff écrivait:
> Je vais voir cela. Le gag, que je prenais indûment pour un bug
> (prononcer bien bOOOOgue pour faire plaisir aux journalistes de la
> télévision), était bien dû au « renommage » du cron.


        Au fait, as tu fait "man tail" ? Tu aurais pu lire :


        With --follow (-f), tail defaults to  following  the  file
       descriptor,  which  means  that  even if a tail'ed file is
       renamed, tail  will  continue  to  track  its  end.   This
       default  behavior is not desirable when you really want to
       track the actual name of the file, not the file descriptor
       (e.g.,  log  rotation).   Use  --follow=name in that case.
       That causes tail to track the named file by  reopening  it
       periodically  to  see if it has been removed and recreated
       by some other program.


                                O. Delemar, CS-SI. ATHESA
                CEA/CENG, Bat. T, 17 Av. des Martyrs, GRENOBLE
                                Tel. 04 76 88 50 16