Am writing one script in which it will check whether a device listens on the specific port. using telnet, I have written the script.
Now my doubt is I have to handle different kind of errors that telnet is giving.
Anybody can give the list of errors and what is the cause of that error?
So that I can handle accordingly in my script?