WofFS
WofFS' Content Machine
Example
Traceroute to your host
traceroute to 206.189.94.68 (206.189.94.68), 30 hops max, 60 byte packets
1 ams1-pod6-vc6-v1-1.tilaa.net (37.252.122.1) 1.423 ms 1.413 ms 1.417 ms
2 ams1-cr2-v1050.tilaa.net (164.138.24.50) 1.033 ms 0.978 ms 1.024 ms
3 164.138.24.154 (164.138.24.154) 0.244 ms 0.248 ms 0.253 ms
4 * * *
5 be8916.nr61.b015581-1.ams03.atlas.cogentco.com (154.25.3.62) 1.321 ms 1.298 ms 1.277 ms
6 154.25.18.41 (154.25.18.41) 1.657 ms 1.829 ms 1.665 ms
7 be2366.ccr42.ams03.atlas.cogentco.com (154.54.61.249) 1.486 ms be2772.ccr41.ams03.atlas.cogentco.com (154.54.62.17) 1.407 ms be2366.ccr42.ams03.atlas.cogentco.com (154.54.61.249) 1.479 ms
8 * * 130.117.14.210 (130.117.14.210) 1.753 ms
9 * * if-bundle-2-2.qcore1.av2-amsterdam.as6453.net (195.219.194.96) 242.251 ms
10 * if-bundle-8-2.qcore2.fnm-frankfurt.as6453.net (195.219.69.105) 252.083 ms *
11 if-bundle-14-2.qcore2.emrs2-marseille.as6453.net (195.219.187.6) 247.825 ms * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 206.189.94.68 (206.189.94.68) 238.542 ms 237.439 ms 237.452 ms
the source code of src/30_Software/12_WCM/20_example.bash
echo "# WofFS"
echo "## WofFS' Content Machine"
echo "### Example"
city=${GEOIP_CITY:-$GEOIP_CITY_V6}
country=${GEOIP_COUNTRY_NAME:-$GEOIP_COUNTRY_NAME_V6}
continent=${GEOIP_CONTINENT_CODE:-$GEOIP_CONTINENT_CODE_V6}
if [ "$city$country$continent" ]
then
echo "#### GEOIP Information"
echo
echo "You seem to be located in $city $country $continent."
fi
echo
if [[ "$REMOTE_ADDR" =~ ^[0-9a-f.:]+$ ]]
then
echo "#### Traceroute to your host"
echo
a=$REMOTE_ADDR
if [ "$a" == ::1 ]; then a=$HTTP_X_REAL_IP; fi
traceroute "$a" | sed 's/^/ /'
fi
echo
echo "#### the source code of $0"
sed 's/^/ /' < $0
echo
echo "[back to WCM](https://woffs.de/Software/WCM)"
back to WCM