| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Protocols app and Optivity, David Easter |
|---|---|
| Next by Date: | Netview and node names, Keith Monroe |
| Previous by Thread: | closing all the pop-ups, Moise Dignard |
| Next by Thread: | Solution for " Error when reading file background " with Optivity 8.1, Goris Davy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web