Fixed broken searchall shell scripts

pull/278/head
luccioman 5 years ago
parent 8be829ca6b
commit 1b3cb3820e

@ -1,7 +1,10 @@
#!/usr/bin/env sh
# Perform a search on the Solr index of each active principal and senior peers known by the local peer
# $1 search term
cd "`dirname $0`"
. ./checkDataFolder.sh
. ./checkConfFile.sh
port=$(grep ^port= "$YACY_DATA_PATH/SETTINGS/yacy.conf" |cut -d= -f2)
./searchall1.sh -s localhost:$port $1
./searchall1.sh "localhost:$port" "$1"

@ -1,4 +1,13 @@
TMPFILE=`mktemp -t search` || exit 1
for address in `./up.sh $1`; do sleep 0.01; ./search1.sh -s $address $2 >> $TMPFILE & done
#!/usr/bin/env sh
# Perform a search on the Solr index of each active principal and senior peers known by the given peer
# $1 a peer address as host:port
# $2 search term
TMPFILE=`mktemp -t searchXXX` || exit 1
for address in `./up.sh $1`;
do
sleep 0.01
./search1.sh -s `printf "$address" | tr -d '\r\n'` "$2" >> "$TMPFILE" &
done
sleep 2
cat $TMPFILE

Loading…
Cancel
Save