I need to write a very small app in C that runs on linux. I need to make sure my arp tables are both current and full, so I need to write a little app that will loop through 254 addresses on a network and execute ping [ipaddress] -c 1.
While my other programming languages are strong (.net, php), I am a C noob. I am pretty sure I can figure out the for loop, passing the command line args with argv. How would you multithread this?
Using the GCC compiler on Ubuntu 8.10, but ultimately this will run on an rPath (Fedora like) server.
Thanks in advance!