Re: [loganalysis] stopping/starting swatchn

From: Mordechai T. Abzug (mortyat_private)
Date: Sat Aug 25 2001 - 12:58:08 PDT

  • Next message: Serge Wroclawski: "Re: [loganalysis] smart alerting from log analysis"

    On Fri, Aug 24, 2001 at 06:40:44PM -0500, Brian Hatch wrote:
    > 
    > 
    > >     awk '/path/[s]watch/{printf "kill -9 -%s\n", $2}'|sh
    > 
    > Of course the biggest problem is that swatch, when run,
    > takes the swatch rules (from .swatchrc, etc) and dynamically
    > generates a perl executable which it then runs.  This
    > program will have a random filename, '.swatch_script.$$'
    > (or something similar, I don't remember for sure.)
    
    Yeah.  That's why we're killing the whole process group (see the "-"
    sign) instead of the process.
    
    - Morty
    
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: loganalysis-unsubscribeat_private
    For additional commands, e-mail: loganalysis-helpat_private
    



    This archive was generated by hypermail 2b30 : Sun Aug 26 2001 - 07:43:44 PDT