From 9f5cfee10e3cec56c6a994b1cc31b6a2746c83f9 Mon Sep 17 00:00:00 2001 From: "william.liangf" Date: Wed, 30 Nov 2011 19:30:52 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@488 1a56cb94-b969-4eaa-88fa-be21384802f2 --- dubbo-demo-consumer/src/main/assembly/bin/display.sh | 8 ++++++++ dubbo-demo-provider/src/main/assembly/bin/display.sh | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 dubbo-demo-consumer/src/main/assembly/bin/display.sh create mode 100644 dubbo-demo-provider/src/main/assembly/bin/display.sh diff --git a/dubbo-demo-consumer/src/main/assembly/bin/display.sh b/dubbo-demo-consumer/src/main/assembly/bin/display.sh new file mode 100644 index 000000000..3cd47e3b6 --- /dev/null +++ b/dubbo-demo-consumer/src/main/assembly/bin/display.sh @@ -0,0 +1,8 @@ +#!/bin/bash +cd `dirname $0` +BIN_DIR=`pwd` +cd .. +DEPLOY_DIR=`pwd` +LOGS_DIR=$DEPLOY_DIR/logs +STDOUT_FILE=$LOGS_DIR/stdout.log +tail -f $STDOUT_FILE \ No newline at end of file diff --git a/dubbo-demo-provider/src/main/assembly/bin/display.sh b/dubbo-demo-provider/src/main/assembly/bin/display.sh new file mode 100644 index 000000000..c640d339a --- /dev/null +++ b/dubbo-demo-provider/src/main/assembly/bin/display.sh @@ -0,0 +1,9 @@ +#!/bin/bash +cd `dirname $0` +BIN_DIR=`pwd` +cd .. +DEPLOY_DIR=`pwd` +CR=`echo -e "\0015\c"` +LOGS_FILE=`sed '/dubbo.log4j.file/!d;s/.*=//' conf/dubbo.properties | sed -e "s/$CR//g"` +LOGS_DIR=`dirname $LOGS_FILE` +tail -f $STDOUT_FILE \ No newline at end of file -- GitLab