diff options
| author | Michael Peter Christen <mc@yacy.net> | 2014-09-13 11:09:35 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2014-09-13 11:09:35 +0200 |
| commit | d1604258c114c03161ae31e53a2e5c1bbf63dd18 (patch) | |
| tree | c39cad4c81e24a02c84c7854845723004566eec8 /bin | |
| parent | 7527ae63e7fef65fd189d01f1c1e31318431587c (diff) | |
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
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/myip.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/myip.sh b/bin/myip.sh new file mode 100755 index 000000000..68d8ac569 --- /dev/null +++ b/bin/myip.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +cd "`dirname $0`" +./apicall.sh "/yacy/seedlist.xml?my=" | awk '/<IP>/{ gsub("<IP>","" );gsub("<\/IP>","" ); print $0 }' | awk '{print $1}'; |
