Tomcat_path= '/home/jyapp/apache-tomcat-7.0.59/'
Pid= ' ps-ef |grep $TOMCAT _path | grep-v grep |awk ' {print $} '
Kill-9 ${pid}
CD $TOMCAT _path/bin
/bin/bash startup.sh >/dev/null
Sleep 1
Tail-f $TOMCAT _path/logs/catalina.out
---delete
rm-fr/home/jyapp/masterdata/web-inf/lib/com-jy-masterdata-product*
#rm-fr/home/jyapp/masterdata/web-inf/lib/com-jy-platform-orguser-server*
Tomcat_path= '/home/jyapp/apache-tomcat-7.0.59/'
tomcat_path1= '/home/jyapp/apache-tomcat-7.0.59-193/'
Pid= ' ps-ef |grep $TOMCAT _path | grep-v grep |awk ' {print $} '
Kill-9 ${pid}
Pid1= ' ps-ef |grep $TOMCAT _path1 | grep-v grep |awk ' {print $} '
Kill-9 ${PID1}
CD CMS
RM-RF *
Jar-xvf/home/jyapp/cms.war
cp/home/jyapp/addcmstbasicinfo.jsp/home/jyapp/cms/web-inf/jsp/collateral/cmstbasicinfo/addcmstbasicinfo.jsp
Cp-r/home/jyapp/xml_back/*/home/jyapp/cms/web-inf/classes
CD $TOMCAT _path/bin
/bin/bash startup.sh >/dev/null
Sleep 1
Tail-f $TOMCAT _path/logs/catalina.out
Linux View Log