From 752576b52114d0b4c371d38908baf1b509a1b7de Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 27 May 2011 12:08:45 +0000 Subject: [PATCH] - localsearch test script does also a snippet-fetch - killYACY.sh does not need a sleep between kill -3 and kill -9 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7750 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- bin/localsearch.sh | 4 ++-- killYACY.sh | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/localsearch.sh b/bin/localsearch.sh index 8acf586ba..50b737616 100755 --- a/bin/localsearch.sh +++ b/bin/localsearch.sh @@ -2,9 +2,9 @@ cd "`dirname $0`" port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) if which curl &>/dev/null; then - curl -s "http://localhost:$port/yacysearch.rss?resource=local&verify=false&query=$1" | awk '/^/{ gsub("","" );gsub("<\/link>","" ); print $0 }' + curl -s "http://localhost:$port/yacysearch.rss?resource=local&verify=ifexist&query=$1" | awk '/^/{ gsub("","" );gsub("<\/link>","" ); print $0 }' elif which wget &>/dev/null; then - wget -q -O - "http://localhost:$port/yacysearch.rss?resource=local&verify=false&query=$1" | awk '/^/{ gsub("","" );gsub("<\/link>","" ); print $0 }' + wget -q -O - "http://localhost:$port/yacysearch.rss?resource=local&verify=ifexist&query=$1" | awk '/^/{ gsub("","" );gsub("<\/link>","" ); print $0 }' else echo "Neither curl nor wget installed!" exit 1 diff --git a/killYACY.sh b/killYACY.sh index 9790166f2..3a9ff5691 100755 --- a/killYACY.sh +++ b/killYACY.sh @@ -7,7 +7,6 @@ cd `dirname $0` PID=`fuser DATA/LOG/yacy00.log | awk '{print $1}'` echo "process-id is " $PID kill -3 $PID -sleep 1 kill -9 $PID echo "killed pid " $PID ", YaCy terminated"