diff options
Diffstat (limited to 'sca-cpp/trunk/components/log/scribe-tail-stop')
-rwxr-xr-x | sca-cpp/trunk/components/log/scribe-tail-stop | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sca-cpp/trunk/components/log/scribe-tail-stop b/sca-cpp/trunk/components/log/scribe-tail-stop index b46c1ecca6..0d43570a6f 100755 --- a/sca-cpp/trunk/components/log/scribe-tail-stop +++ b/sca-cpp/trunk/components/log/scribe-tail-stop @@ -38,5 +38,8 @@ fi 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 }'` +k=`ps -ef | grep -v grep | grep "${cmd}" | awk '{ print $2 }'` +if [ "$k" != "" ]; then + kill $k +fi |