Friday, May 12, 2006

Proxy Traceroute

When I need to ensure that an IP address is properly routed and reachable, I often use the traceroute service of However when I have to query frequently, the slowness of firefox on my laptop is such a hinderance.
To keep myself from hammering down my laptop, I create shell script to do the task using elinks and sed. Here is my code:

elinks -dump --no-references --no-numbering \ "$1"|sed '1,21d'|sed -n -e :a -e '1,7!{P;N;D;};N;ba'

I saved the script as and using it with the traceroute target as the only parameter.

$ sh
$ sh

This way is much faster, really.

No comments: