# cancel any running tsm reclaims
cmd="select  process_num, 'Space Reclamation' from processes where process = 'Sp
ace Reclamation'"
echo "Checking for running reclaim processes"
for pro in `dsmadmc -id=$ID -pass=$PW $cmd | grep -v ANS8000I | grep "Space Recl
amation" | awk '{print $1}' `
do
  echo "Cancelling process $pro"
  dsmadmc -id=$ID -pass=$PW cancel pro $pro
done


>>> [EMAIL PROTECTED] 12/11/2003 5:31:03 AM >>>
Hi to All

Did anybody had a script for cancelling a process. I run a backup storage
that sometime take a very long time and I want to schedule a script to
verify if a backup storage is running  (select * from processes where
upper(process)='BACKUP') ' if yes I want to cancel it. 

My problem is how to collect the process number I need for the can process
*.

Any help will be appreciate **

Regards Robert Ouzen
E-Mail: [EMAIL PROTECTED]

Reply via email to