script for telnet
I want to create script wherein it will check the application if its running. The command that I'll be using to check the application is telnet (if you can recommend others, that's ok).
I've an application and it is listening to port 1808. If I do telnet localhost 1808, the response is : Code:
[root@test ~]# telnet localhost 1808 Any advise from a guru here? |
I would instead recommend using netcat and then driving it with an expect script:
http://nc110.sourceforge.net/ http://en.wikipedia.org/wiki/Expect |
@zordrak
Thanks for the suggestions. It seems netcat is a promising tool. Will try these and inform you about the outcome. |
Quote:
|
@ghostdog74
Thanks for this link. It seems this is the one that I'm looking for. Though I need to study a bit of python to customize this scripts |
Quote:
|
All times are GMT -5. The time now is 09:13 AM. |