0

I have a file with 10 servers (one per line) and I need to check from time to time if telnet on port 1231 is opened.

How can I do that using a bash script?

I tried to find a similar topic related to my question on other topics, but I didn't find anything.

1
  • What have you tried yourself so far? How did (or didn't) that work? Can you be more specific what part you have problems with (reading from the file, telnetting, checking the status)? Commented Oct 21, 2015 at 14:05

1 Answer 1

1

If you only want to test if the port is open you can use nmap:

$ nmap -p23 $ip

setting ip as the IP of the server.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.