I currently have a perl script...
In this script I ping some hosts read from a host database table in mysql. I right now if I ping each host 10 times and each ping takes a second, then I can only do 6 hosts a minute. I need this script to run every minute. And I have hundreds of hosts (theoritcally). So I need to build in some 'threading' capability.
I need it to ping these hosts concurrently and I'm pretty new to perl. Will calling fork() work for this? Also, would anyone be willing to take a look at some code to see where I would need to fork (or whatever) for this to work?