Repository navigation
v0.0.2
Initial release (with just a little fix) 馃帀
A humorous POSIX shell script that estimates distance from ping RTT based on the speed of light.
Features
- Four transmission models:
--fiber(default),--copper,--theoretical,--dialup - Force IPv4 with
-4 - Limit packet count with
-c - Output mimics standard
ping(8)format - Statistics summary on Ctrl+C (RTT + estimated distance min/avg/max)
- Strictly POSIX: no bashisms, no GNU-isms, no PCRE
Compatibility
- Debian GNU/Linux (Bookworm, Trixie) arm64/amd64
- FreeBSD 13.x / 14.x
- macOS (Darwin) Ventura, Sonoma, Sequoia
Fun facts
--copperand--fibergive the same result within ~1% - the real troll is in the physics--dialupsubtracts 120 ms of modem overhead - back then, the world was smaller- Originally written in 2002 at Club-Internet on 36 lines of Solaris shell