nv-l

Re: closing all the pop-ups

1998-06-19 12:56:15
Subject: Re: closing all the pop-ups
From: "Anthony J. Santucci" <santucci AT DATASYSTEMS DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Fri, 19 Jun 1998 12:56:15 -0400
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>