Re: closing all the pop-ups
1998-06-19 12:56:15
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) ----
|
|
|