Well … I was bored the other day and started to write this piece of code. I was encouraged by a colleague who tried to use wildcards to ping hosts as a joke (ping 192.168.0.*). But I thought that it could be quite nice, if a ping command could work with wildcards, mainly because you can get a quick overview of the ping-able hosts. You could surely use nmap -sP 192.168.0.*, but what if you don’t have nmap? I saw this as an incentive to start a new script. Here is the result: pinguin
With this script it is possible to ping a range of IP-adresses (eg. 192.168.0.*). For further information take a look at the script or execute it without any arguments to get information on the usage.
It is written in Perl (please be lenient -> my skills aren’t that good
) and requires Net::Ping and the “host” command. It is designed to run on any current GNU/Linux-distribution where Perl is installed. You can do whatever you want with the source code.
Oh, and: YES I KNOW that i could have used Net::DNS instead of the “host” command, but it wasn’t reachable by the time I was writing this, ok? If you don’t like this, change it. And if you don’t like the idea anyway, I don’t care. I was just bored
…









