Article 5RP3M Scripting for telnet

Scripting for telnet

by
vershooter
from LinuxQuestions.org on (#5RP3M)
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=Ovj9L65wNbs:hoXSbt1V6wA:F7zBnMy latest?i=Ovj9L65wNbs:hoXSbt1V6wA:V_sGLiP latest?d=qj6IDK7rITs latest?i=Ovj9L65wNbs:hoXSbt1V6wA:gIN9vFwOvj9L65wNbs
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