jhilton |
07-29-2008 09:30 AM |
Shell Scripting question involving ping
Hello! As the topic states I'm making a script that will do the following things on boot from a livecd: - Assign itself an IP address
- Ping the machines on the network and find the missing IP address
- Once the missing IP address is found, the machine with the livecd inside will assume that IP
Currently I have a workaround where the livecd mounts the partition of the machine and searches for specific files within that partition. If it finds a file, then it takes the IP address of the machine that I assigned for it. This method can become annoying as I will then have to create specific files for each computer and add more lines to the script if I ever want to add more computers to the network.
My Question: Is there any other way to find if a computer is online other then grep/parsing through the ping output?
|