Re: Cancel All Processes
2003-03-25 17:03:39
Million ways to skin a cat, but here's one crude way.
dsmadmc -se=$SERVER -id=$ID -pa=$PA -commadelimited "select
process_num,
process, status from processes" | tail +8 | grep -v ANR | grep -v ANS |
grep , > $OUTFILE
PROCESSES=`cat $OUTFILE | cut -d, -f1`
for PROCESS in $PROCESSES
do
dsmadmc -se=$SERVER -id=$ID -pa=$PA "canc process $PROCESS"
done
print $SERVER >> $MAILFILE
cat $OUTFILE >> $MAILFILE
rm $OUTFILE
done
-----Original Message-----
From: Dearman, Richard [mailto:rdearm1 AT UIC DOT EDU]
Sent: Tuesday, March 25, 2003 3:57 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Cancel All Processes
Does anyone have a script to cancel all process? For example you can
"cancel sess all" to cancel all sessions but there is no "cancel proc all"
command. So there must be a scripting way of doing this.
THanks
***************************EMAIL DISCLAIMER*************************** This
email and any files transmitted with it may be confidential and are intended
solely for the use of th individual or entity to whom they are addressed.
If you are not the intended recipient or the individual responsible for
delivering the e-mail to the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is strictly prohibited. If you have received this e-mail in error, please
delete it and notify the sender or contact Health Information Management
312.996.3941.
|
|
|