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 - [url removed, login to view]
220.127.116.11 - 18.104.22.168-54
[url removed, login to view] - [url removed, login to view]
I want to check if the above IPs will connect to the following server:
[url removed, login to view]
The command to do the above one by one would be the following:
nc -s [url removed, login to view] 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).
20 freelancers are bidding on average $74 for this job
If you refer to my private message, I have offered an alternative solution. I will be able to complete the work within one day. I work with Linux and BASH on a regular basis.