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.
Thanks
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.
Thanks