From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078701111679.tru64-unix-managers.marc@archive.invalid> From: "Bivins, Jeff" Date: Wed, 25 Mar 1998 18:00:00 +0000 To: tru64-unix-managers Subject: How do I know what telnet port I am X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078701111679 Hello Managers, I have an ASE cluster that provides services for an application that rides on a telnet connection. I am trying to automate the login process so that when a user telnet's to a particular ip address they startup a the correct application. I can use netstat and collect where the ip connections connecting from, I have not been successful on determining which connection is my current process. Example of a netstart -a | grep telnet command tcp 0 0 otusschs-100.telnet 153.56.19.79.1051 ESTABLISHED tcp 0 0 otusschs-devd1.telnet 153.56.19.79.1048 ESTABLISHED tcp 0 0 otusschs-devd1.telnet 153.56.15.30.2303 ESTABLISHED tcp 0 0 otusschs-devd1.telnet 153.56.21.239.1030 ESTABLISHED tcp 0 0 otusschs-devd1.telnet 153.56.20.237.1032 ESTABLISHED tcp 0 0 otusschs-100.telnet 153.56.20.13.1034 ESTABLISHED tcp 0 0 otusschs-100.telnet 153.56.21.239.1031 ESTABLISHED tcp 0 0 otusschs-devd1.telnet 153.56.20.13.1033 ESTABLISHED tcp 0 0 *.telnet *.* LISTEN How can I determine which one of these telnet sessions is associated with my process. Thanks, Jeff