From caec161501b7157e102c7e6532084616e8dce176 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Tue, 28 Jun 2011 15:50:47 +0000 Subject: Port to Mac OS X 10.6.7. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1140690 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/components/log/scribe-tail-stop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/components/log/scribe-tail-stop') diff --git a/sca-cpp/trunk/components/log/scribe-tail-stop b/sca-cpp/trunk/components/log/scribe-tail-stop index e1b74fc0c6..b46c1ecca6 100755 --- a/sca-cpp/trunk/components/log/scribe-tail-stop +++ b/sca-cpp/trunk/components/log/scribe-tail-stop @@ -18,7 +18,7 @@ # under the License. # Stop tailing a file -here=`readlink -f $0`; here=`dirname $here` +here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here` category="" type="" @@ -35,7 +35,7 @@ else file=$1 fi fi -file=`readlink -f $file` +file=`echo "import os; print os.path.realpath('$file')" | python` cmd="tail -f -n 0 $file" kill `ps -ef | grep -v grep | grep "${cmd}" | awk '{ print $2 }'` -- cgit v1.2.3