home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / tcpip / 5591 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.protocols.tcp-ip
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!uwm.edu!linac!att!mcdchg!laidbak!tellab5!balr!ttd.teradyne.com!news
  3. From: bologna@ttd.teradyne.com (Joe Bologna)
  4. Subject: How do I find the PID of a process using a specific socket under SunOS?
  5. Message-ID: <1992Dec11.121343.24521@ttd.teradyne.com>
  6. Sender: news@ttd.teradyne.com (News Feed Account)
  7. Nntp-Posting-Host: aragorn.ttd.teradyne.com
  8. Organization: Teradyne Inc., Telecommunications Division
  9. Distribution: il
  10. Date: Fri, 11 Dec 92 12:13:43 GMT
  11. Lines:      20
  12.  
  13. Does anyone know how to find the PID of a process using a socket?
  14.  
  15. For instance, if I use telnet to login from machine "aragorn" to machine
  16. "gandalf", I can find the local TCP port the telnet process is using by
  17. netstat. The following output is obtained.
  18.  
  19. % netstat
  20. Active Internet connections
  21. Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
  22. tcp        0      0  aragorn.1047           gandalf.telnet    ESTABLISHED
  23.  
  24. How do I find the PID of the telnet process on the local machine?
  25.  
  26. I am running SunOS 4.1.X.
  27.  
  28. Joe Bologna
  29. Teradyne Inc., Telecommunications Division
  30. Deerfield, IL
  31. bologna@ttd.teradyne.com
  32.