-
-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed broken searchall shell scripts
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |