怎么在SHELL里判断WEBLOGIC启动成功?
lasse 2007-07-04 06:43:09 想编个SHELL负责启停各个WEBLOGIC DOMAIN下的应用。
平时启应用执行./nohup startWebLogic &
然后再tail -f nohup.out 看到listening on port xxxx就认为是启动成功了。
停应用执行./stopWebLogic.sh
看到was force shutdown successfully ...就算成功。。
如果编个SHELL菜单,把startWebLogic.sh 和stopWebLogic.sh放在SHELL里执行,象按1启动,按2停止。。怎么能判断weblogic启动或停止操作成功?