README
Features
/usr/local/bin/ping overridden ping
/sbin/ping original binary
ping google.com
if no arguments are passed- ignore
Unknown host
error and continue ping
Usage
usage: ping
Examples
ping google.com
by default
$ ping
64 bytes from xx.xx.xx.xx: icmp_seq=0 ttl=46 time=21.960 ms
64 bytes from xx.xx.xx.xx: icmp_seq=1 ttl=46 time=21.969 ms
Unknown host
example (print datetime and continue ping)
# original ping failed without connection
$ /sbin/ping google.com
ping: cannot resolve google.com: Unknown host
$ ping
ping: cannot resolve google.com: Unknown host
2018:05:21 15:23:02
ping: cannot resolve google.com: Unknown host
2018:05:21 15:23:07
ping: cannot resolve google.com: Unknown host
...