Re: [loganalysis] stopping/starting swatch

From: Mordechai T. Abzug (mortyat_private)
Date: Fri Aug 24 2001 - 12:51:39 PDT

  • Next message: n gold: "[loganalysis] fwlogwatch feedback"

    On Fri, Aug 24, 2001 at 06:08:22AM -0700, Stuart Kendrick wrote:
    
    > Yet, if I manually type "kill {pid1} {pid2}", where pid1 and pid2 are the
    > two swatch PIDs, then swatch dies just fine.
    
    That stop code was pretty scary.  :)
    
    You're running Solaris 7, right?  Is the child process in the same
    process group?  I like to use this style of code:
    
    ps -eo pid,pgid,args|grep '/path/[s]watch'|\
       awk '{printf "kill -9 -%s\n", $2}'|sh
    
    - Morty
    
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: loganalysis-unsubscribeat_private
    For additional commands, e-mail: loganalysis-helpat_private
    



    This archive was generated by hypermail 2b30 : Fri Aug 24 2001 - 14:22:50 PDT