Article 5RP3P Scripting for telnet

Scripting for telnet

by
vershooter
from LinuxQuestions.org on (#5RP3P)
HI,

Newbie here.

I just want to ask how to do bash script like to telnet IP PORT() then after connected I will type status. then I will see how many connection I created. I want to create a script that for example connections is above 5 then it will restart a service. Do you have insight for this one.

Thankslatest?d=yIl2AUoC8zA latest?i=3SuWPmDIzYw:8rGXObYnXTo:F7zBnMy latest?i=3SuWPmDIzYw:8rGXObYnXTo:V_sGLiP latest?d=qj6IDK7rITs latest?i=3SuWPmDIzYw:8rGXObYnXTo:gIN9vFw3SuWPmDIzYw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments