linux下自动部署Teamcenter Enterprise 的服务端脚本

#-----------------------------start-----------------------------
#!/bin/csh
echo '>>> start'
cd $MTI_ROOT//config
source pdmsetup
muxstop
sleep 6
cd $MTI_ROOT
rm bin/libsxxx.so
pwd
echo '>>>MUX stopped & removed libsxxx.so OK>>>'

echo '>>>start to uncompress TZ files>>>'

cat $MTI_ROOT/source/XXX_OBJS.TZ | uncompress -c|tar xvf -
echo '>>>XXX_OBJS OK>>>'

cat $MTI_ROOT/source/XXX_DBS.TZ | uncompress -c|tar xvf -
echo '>>>XXX_DBS OK>>>'

cat $MTI_ROOT/source/XXX_MODL.TZ | uncompress -c|tar xvf -
echo '>>>XXX_MODL OK>>>'

cat $MTI_ROOT/source/XXX_SPRT.TZ | uncompress -c|tar xvf -
echo '>>>XXX_SPRT OK>>>'

echo '>>>end of uncompress TZ files>>>'

pwd
cp $MTI_ROOT/tmti.prd $MTI_ROOT/tmti.bak
cp $MTI_ROOT/tmti.prd $MTI_ROOT/meta/tmti.old
cd $MTI_ROOT/install
pwd
echo '>>>start /bin/model -b tmti.prd -f mti.prd >>>'
$MTI_ROOT/bin/model -b tmti.prd -f mti.prd
echo '>>>/bin/model -b tmti.prd -f mti.prd OK>>>'
cp tmti.prd $MTI_ROOT/
admodule
echo '>>>admodule OK>>>'
echo '>>>start checkfrm -b tmti.frm -q tmti.fri -f mtien_us.frm>>>'
checkfrm -b tmti.frm -q tmti.fri -f mtien_us.frm
echo '>>>checkfrm -b tmti.frm -q tmti.fri -f mtien_us.frm OK>>>'


你可能感兴趣的:(linux,脚本)