nv-l
[Top] [All Lists]

Re: closing all the pop-ups

To: nv-l@lists.tivoli.com
Subject: Re: closing all the pop-ups
From: "Anthony J. Santucci" <santucci@DATASYSTEMS.COM>
Date: Fri, 19 Jun 1998 12:56:15 -0400
Organization: Unified Network Services
Reply-to: Discussion of IBM NetView and POLYCENTER Manager on NetView et alia <NV-L@UCSBVM.UCSB.EDU>
Sender: Discussion of IBM NetView and POLYCENTER Manager on NetView et alia <NV-L@UCSBVM.UCSB.EDU>
Try this script...


# Kill many clients of the same name
    if [ $# -eq 1 ]
    then
       pids=$(ps -ef | grep $1 | grep -v grep | grep -v kill | awk
'{print $2}')
       cnt=0
       for i in ${pids}; do
           cnt=`expr ${cnt} + 1`
       done
       if [ $cnt -ne 0 ]
       then
          echo Killing all $1 processes
          echo kill ${pids} 2>/dev/null
       fi
       sleep 2
    fi



AJ. Santucci
--
---  Unified    Network    Services  ---
---- 919.572.7900(voice), 7960(fax) ----

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web