You have chosen to sponsor your bid up to a maximum amount of .
I need someone to write a shell script that will utilize the "nc" command to check connectivity of IP addresses to a specified mail server. I need it to be versatile in the respect that it needs to check multiple IP addresses either from the same Class C range or multiple Class C ranges.
Here is an example of a scenario:
I want to check the connectivity of the following IPs that are binded to the server:
184.108.40.206 - 220.127.116.11
18.104.22.168 - 22.214.171.124-54
172.24.21.50 - 172.24.21.90
I want to check if the above IPs will connect to the following server:
The command to do the above one by one would be the following:
nc -s mtain-de.r1000.mx.aol.com 25
The problem with checking the IPs one by one is that it will take forever so I need an automated way to do this (hence the shell script). I want the shell script to be versatile and allow input when run so it would do something like the following when run:
Please input IP ranges in the following format (X.X.X.X - X.X.X.X):
Please enter server you would like to connect to:
I would then be allowed to input one or several IP ranges. The shell script would then utilize the "nc" command to check all IPs in the ranges I assigned and output the results in real time to the screen and also save the results in a .txt file.
This should be a simple job for someone who knows how to do this. I am looking to have this completed in one day and please don't bid some outrageous amount. Please message me explaining your knowledge and a personalized message of when you can complete the job (no random automated copy/paste responses please).