parent
252bb51f98
commit
3d9ce9cd04
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "`dirname $0`"
|
cd "`dirname $0`"
|
||||||
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
|
./apicall.sh "/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';
|
||||||
./up1.sh localhost:$port
|
|
||||||
|
#port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
|
||||||
|
#./up1.sh localhost:$port
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
cd "`dirname $0`"
|
|
||||||
if which curl &>/dev/null; then
|
|
||||||
curl -s "http://$1/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';
|
|
||||||
elif which wget &>/dev/null; then
|
|
||||||
wget -q -O - "http://$1/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in new issue