cougartrace
Technical User
I have this piece of code in my korn shell script:
#***********************
# Check TableSpace State
#***********************
if [ $state = '0x10000000' ]
then
nstate = 'BALANCE'
elif [ $state = '0x0000' ]
then
nstate = 'NORMAL'
else
nstate = 'ABNORMAL'
fi
No matter what the $state is, if the first go through the loop is 0x0000 then all the way through the loop it sets nstate as normal. I've done the checking and the state is being passed right. What am i missing?
#***********************
# Check TableSpace State
#***********************
if [ $state = '0x10000000' ]
then
nstate = 'BALANCE'
elif [ $state = '0x0000' ]
then
nstate = 'NORMAL'
else
nstate = 'ABNORMAL'
fi
No matter what the $state is, if the first go through the loop is 0x0000 then all the way through the loop it sets nstate as normal. I've done the checking and the state is being passed right. What am i missing?