PINGI - Ping Tool with Explicit Timeout Messages
Why I created this: I was frustrated with the standard ping command on Linux/Gaia - when a ping times out, you get zero feedback. Just silence. I hated not knowing if the timeout actually triggered, so I made PINGI.
Features
- ✅ Explicit timeout messages - Red ✗ for every timeout
- ✅ Color-coded output - Green success, red failures
- ✅ Configurable - Set timeout (-t), count (-c), and packet size (-s)
- ✅ Statistics - Packet loss % and average latency (if awk available)
- ✅ Minimal dependencies - Just bash and ping, awk optional
Usage
./pingi.sh <host> [-t timeout] [-c count] [-s size]
Options:
-t <seconds> Timeout in seconds (default: 3)
-c <count> Number of pings (default: infinite)
-s <bytes> Packet size in bytes (default: 56)
Examples:
./pingi.sh 8.8.8.8 # Infinite pings, 3s timeout
./pingi.sh google.com -t 2 -c 10 # 10 pings, 2s timeout
./pingi.sh 192.168.1.1 -s 1024 -c 5 # 5 pings with 1024 byte packets
Example Output
✓ seq=1 time=15.23 ms ttl=56 bytes=64
✓ seq=2 time=14.89 ms ttl=56 bytes=64
✗ seq=3 Request timeout (3s)
✓ seq=4 time=16.01 ms ttl=56 bytes=64
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 3 received, 1 lost (25% loss), time 5s
Average response time: ~15.37 ms
Download attached. Make executable and use! 🚀
and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite