From owner-freebsd-questions Tue Nov 10 18:37:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA25024 for freebsd-questions-outgoing; Tue, 10 Nov 1998 18:37:55 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from tasam.com (tasam.com [198.232.144.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA25019 for ; Tue, 10 Nov 1998 18:37:54 -0800 (PST) (envelope-from clash@tasam.com) Received: from bug (bug.tasam.com [198.232.144.254]) by tasam.com (8.9.1/8.9.1) with SMTP id VAA06851 for ; Tue, 10 Nov 1998 21:37:31 -0500 (EST) Message-ID: <00aa01be0d1c$3d9d0aa0$fe90e8c6@bug.tasam.com> From: "Joe Gleason" To: Subject: Finding the pid of a tcp connection Date: Tue, 10 Nov 1998 21:37:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="x-user-defined" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2110.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG How do I find the process that is doing a connection that is listed in netstat? Idealy, I would like to write a little shell script that will give me the pid if I give it the local port. Joe Gleason Tasam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message