Question: In linux, Write a script that reads a file containing multiple IP addresses. The script should then perform a ping test on them one at

In linux, Write a script that reads a file containing multiple IP addresses. The script should then perform a ping test on them one at a time with ping -c 1 [IP address], letting the user know if the ping succeeded based on the commands exit code (you may need to research what exit codes are). Be sure your script validates each IP address before pinging it, skipping over invalid ones (hint: consider using the ipcalc command for this).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!