need help forking pings
i want to make a program that pings a list of ips every 5 mins, and logs the pings
but i need to fork the pings because if one of the ips goes down it will screw up my log for example ping x ping y ping z x time=51.8 ms y time=did not respond z time=32.4 ms well now imagin if i was pinging 50 ips, and 10 of them did not respond, waiting on those 10 would screw up my log unless i could find a way to make it "go around" them but still finish the full ping... like ping x ping y ping z x time=51.8 ms y time=not responding--- forks to ping z z time=32.4 ms y time=finishes pinging-did not respond... i'm sorry if this is confusing.. i'm having a hard time explaining it.. thanks for any help --bret |
This sorta does it. You'll have to modify it heavily for your use.
Code:
#include <stdio.h> Code:
#!/bin/bash |
hey thanks alot guy, that helped out quite a bit.
|
All times are GMT -5. The time now is 10:42 PM. |