yacy_search_server/bin/myip.sh
Michael Peter Christen d1604258c1 added a script which retrieves the public ip of the local peer and
prints it out to the terminal using the new servlet /yacy/seedlist.xml.
just call:
bin/myip.sh
2014-09-13 11:09:35 +02:00

4 lines
160 B
Bash
Executable File

#!/usr/bin/env bash
cd "`dirname $0`"
./apicall.sh "/yacy/seedlist.xml?my=" | awk '/<IP>/{ gsub("<IP>","" );gsub("<\/IP>","" ); print $0 }' | awk '{print $1}';