SMOLNET PORTAL home about changes
check-for-gopher-service.sh - gopher-lawn - The gopher lawn gopher directory project.
(URL) git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ (git://bitreich.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
check-for-gopher-service.sh (275B)
---
1 #!/bin/sh
2
3 if [ $# -lt 1 ];
4 then
5 printf "usage: %s pleroma-servers.txt\n" "$(basename "$0")" >&2
6 exit 1
7 fi
8
9 shuf "$1" \
10 | xargs -I '{}' -P 16 sh -c 'server={}; printf "\r\n" | nc -w 5 ${server} 9999 2>/dev/null | grep -q 9999 && printf "%s serves gopher\n" "${server}";'
11
Response: application/gopher-menu
Original URLgopher://bitreich.org/1/scm/gopher-lawn/file/fediverse/ch...
Content-Typeapplication/gopher-menu; charset=utf-8