当前位置: > Linux服务器 > 环境配置 >

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

时间:2014-10-28 13:45来源:linux.it.net.cn 作者:it












1.#-----------------------------start-----------------------------
02.#!/bin/csh
03.echo '>>> start'
04.cd $MTI_ROOT//config
05.source pdmsetup
06.muxstop
07.sleep 6
08.cd $MTI_ROOT
09.rm bin/libsxxx.so
10.pwd
11.echo '>>>MUX stopped & removed libsxxx.so OK>>>'
12. 
13.echo '>>>start to uncompress TZ files>>>'
14. 
15.cat $MTI_ROOT/source/XXX_OBJS.TZ | uncompress -c|tar xvf -
16.echo '>>>XXX_OBJS OK>>>'
17. 
18.cat $MTI_ROOT/source/XXX_DBS.TZ | uncompress -c|tar xvf -
19.echo '>>>XXX_DBS OK>>>'
20. 
21.cat $MTI_ROOT/source/XXX_MODL.TZ | uncompress -c|tar xvf -
22.echo '>>>XXX_MODL OK>>>'
23. 
24.cat $MTI_ROOT/source/XXX_SPRT.TZ | uncompress -c|tar xvf -
25.echo '>>>XXX_SPRT OK>>>'
26. 
27.echo '>>>end of uncompress TZ files>>>'
28. 
29.pwd
30.cp $MTI_ROOT/tmti.prd $MTI_ROOT/tmti.bak
31.cp $MTI_ROOT/tmti.prd $MTI_ROOT/meta/tmti.old
32.cd $MTI_ROOT/install
33.pwd
34.echo '>>>start /bin/model -b tmti.prd -f mti.prd >>>'
35.$MTI_ROOT/bin/model -b tmti.prd -f mti.prd
36.echo '>>>/bin/model -b tmti.prd -f mti.prd OK>>>'
37.cp tmti.prd $MTI_ROOT/
38.admodule
39.echo '>>>admodule OK>>>'
40.echo '>>>start checkfrm -b tmti.frm -q tmti.fri -f mtien_us.frm>>>'
41.checkfrm -b tmti.frm -q tmti.fri -f mtien_us.frm
42.echo '>>>checkfrm -b tmti.frm -q tmti.fri -f mtien_us.frm OK>>>'
(责任编辑:IT)
------分隔线----------------------------