Änderungen

Zur Navigation springen Zur Suche springen
2 Bytes hinzugefügt ,  10:57, 14. Aug. 2007
K
→‎Technische Details: besseres ausschneiden
Zeile 25: Zeile 25:  
LIST=$(wget -O - http://127.0.0.1:2006 | sed -e '/./{H;$!d;}' -e 'x;/Table: HNA/!d;' | sed -e '/255.255.255.192/!d' -e 's/[^0-9.]/ /g' $FILE | cut -d" " -f3)
 
LIST=$(wget -O - http://127.0.0.1:2006 | sed -e '/./{H;$!d;}' -e 'x;/Table: HNA/!d;' | sed -e '/255.255.255.192/!d' -e 's/[^0-9.]/ /g' $FILE | cut -d" " -f3)
 
for IP in $LIST; do echo "----$IP"; PING="$(ping -c 4 $IP | wc -l)" ; if [ "$PING" -gt 7 ]; then wget -O - http://$IP/cgi-bin-contact.html | awk -F'TD>' '/E-Mail:/ {print $4}'; wget -O - http://$IP/cgi-bin-index.html | awk '/Freifunk-Firmware/ {print $4; exit}'; fi; done
 
for IP in $LIST; do echo "----$IP"; PING="$(ping -c 4 $IP | wc -l)" ; if [ "$PING" -gt 7 ]; then wget -O - http://$IP/cgi-bin-contact.html | awk -F'TD>' '/E-Mail:/ {print $4}'; wget -O - http://$IP/cgi-bin-index.html | awk '/Freifunk-Firmware/ {print $4; exit}'; fi; done
 +
#
 
</pre>
 
</pre>

Navigationsmenü