For some reason, my previous posts are not showing up on this thread. I tried three times.
That's not what I'm looking for. That only works if I'm have the terminal with the telnet session in front of me. Specifically, I want to use write a script that disconnects an existing telnet session. The telnet sessions do not require user names and passwords; anyone can login by telneting into a host and port number. I do not know from what host the user may be logging from. For example, a user may working be on machine M may log into host H on port P by entering "telnet H P". I may be on machine M2, but I won't know where the other host is logged from, but I do know what host and port the user is logged into because I can't connect to the host-port
I've tried using
pexpect to try sending some escape characters into a telnet stream, but I can't even login to the host-port because someone else is already on it.