文章列表
#!/bin/sh
t=`date`
COM1="/data/TomSyncPush/tomcat-1/bin/startup.sh"
COM2="/data/TomSyncPush/tomcat-2/bin/startup.sh"
T1PID=`ps -ef | grep tomcat-1 | grep -v "grep tomcat-1" | cut -c 9-15`
T2PID=`ps -ef | grep tomcat-2 | grep -v "grep tomcat-2" | cut -c 9-15` ...