Here's a snippet from a ksh script that passes a value to a TSM command.

reqID=`dsmadmc -id=admin -pass=admin "q req" | \
       grep ANR8373I | cut -d: -f1| awk '{ print $2 }'`

dsmadmc -id=admin -pass=password "rep $reqID"

Mahesh

>>> [EMAIL PROTECTED] 03/19/02 10:24AM >>>
I am trying to create a script to find out if the log reaches 80% and
Expiration is running to cancel the expiration process. My question is how
do I pass the process number as a parameter and cancel it. My script goes
like this.

select pct_utilized from log where pct_utilized > 80%
     if (rc_ok) goto claim
claim: select process, process_num as "Numbrers" from processes where
process='Expiration'
     if (rc_ok) cancel process "Numbers"

The second if statement does not work because I can't pass "Numbers" as a
parameter. What is the best way to do this?

Thank you



Tony Jules
ITS / Olympus America Inc.
631-844-5887
[EMAIL PROTECTED]

Reply via email to