public:recetas:muestragraficascaminoguifinet
¡Esta es una revisión vieja del documento!
Mostrar las gráficas de un camino en guifi.net
#!/bin/bash BROWSER=firefox # The option -d indicates that the URLs have to be shown in the browser if [ $1 == "-d" ]; then IP=$2; else IP=$1; fi #for ips in `traceroute -n 10.228.130.1 | grep -v traceroute | cut -d " " -f 4`; do # Para filtrar las 192.168 for ips in `traceroute -n $IP | grep -v traceroute | cut -d " " -f 4 | grep -v -E "^192.168."`; do url="http://guifi.net/ca/guifi/menu/ip/ipsearch/$ips" echo $ips for i in $(wget -qO - $url | grep $ips| grep href | grep -v language | sed -e 's/href="/\nhttp:\/\/guifi.net\//g'| sed -e 's/">/\n/g' | grep http); do if [ $1 == "-d" ]; then $BROWSER $i fi echo " ",$i done done
public/recetas/muestragraficascaminoguifinet.1383899691.txt.gz · Última modificación: 2013/11/08 08:34 por mperez