tracemap
annotate xguru_fun @ 0:0d498f80f832
Repository initialization.
| author | Igor Chubin <igor@chub.in> |
|---|---|
| date | Sun Jun 29 17:36:44 2008 +0300 (2008-06-29) |
| parents | |
| children |
| rev | line source |
|---|---|
| igor@0 | 1 get_mx() |
| igor@0 | 2 { |
| igor@0 | 3 dig "$1" mx | grep -v '^;' | grep MX | sort -nk 5 | head -1 | awk '{print $6}' | sed s/.$// |
| igor@0 | 4 } |
| igor@0 | 5 get_ttl() |
| igor@0 | 6 { |
| igor@0 | 7 traceroute -q1 -n "$1" | grep ms | wc -l |
| igor@0 | 8 } |
| igor@0 | 9 get_location() |
| igor@0 | 10 { |
| igor@0 | 11 lynx -dump 'http://www.geoiptool.com/en/?IP='$1 | egrep 'Longitude|Latitude|City|Country|Region' |
| igor@0 | 12 } |
