You are on page 1of 1

#!

/bin/sh
flag=0
response="b.tmp"
GALAXY_BASE=${GALAXY_BASE:-/opt/commvault/Base}

PATH=$PATH:$GALAXY_BASE; export PATH

qlogin -cs "INAZWRCMV1001.narayanahealth.org" -csn


"inazwrcmv1001.narayanahealth.org"
if [ $? -ne 0 ]
then
echo Login failed.
else
while :
do
if [ "$1" ]
then
input=$input $1
shift
else
break;
fi
done

qoperation execute -af "bkp.xml" >$response


if [ $? -ne 0 ]
then
echo Failed to execute operation.
else
cat $response | \
while read line
do
echo $line
done
fi
qlogout
if [ $? -ne 0 ]
then
echo Logout failed.
fi
rm $response
fi

You might also like