home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.tcp-ip
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!uwm.edu!linac!att!mcdchg!laidbak!tellab5!balr!ttd.teradyne.com!news
- From: bologna@ttd.teradyne.com (Joe Bologna)
- Subject: How do I find the PID of a process using a specific socket under SunOS?
- Message-ID: <1992Dec11.121343.24521@ttd.teradyne.com>
- Sender: news@ttd.teradyne.com (News Feed Account)
- Nntp-Posting-Host: aragorn.ttd.teradyne.com
- Organization: Teradyne Inc., Telecommunications Division
- Distribution: il
- Date: Fri, 11 Dec 92 12:13:43 GMT
- Lines: 20
-
- Does anyone know how to find the PID of a process using a socket?
-
- For instance, if I use telnet to login from machine "aragorn" to machine
- "gandalf", I can find the local TCP port the telnet process is using by
- netstat. The following output is obtained.
-
- % netstat
- Active Internet connections
- Proto Recv-Q Send-Q Local Address Foreign Address (state)
- tcp 0 0 aragorn.1047 gandalf.telnet ESTABLISHED
-
- How do I find the PID of the telnet process on the local machine?
-
- I am running SunOS 4.1.X.
-
- Joe Bologna
- Teradyne Inc., Telecommunications Division
- Deerfield, IL
- bologna@ttd.teradyne.com
-