From owner-freebsd-questions@FreeBSD.ORG Sun Apr 10 21:24:01 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53A8616A4CE for ; Sun, 10 Apr 2005 21:24:01 +0000 (GMT) Received: from smtpq2.home.nl (smtpq2.home.nl [213.51.128.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F76D43D3F for ; Sun, 10 Apr 2005 21:24:00 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.128.133] (port=53404 helo=smtp2.home.nl) by smtpq2.home.nl with esmtp (Exim 4.30) id 1DKjuR-0004NL-NB for freebsd-questions@freebsd.org; Sun, 10 Apr 2005 23:23:59 +0200 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:54185 helo=desktop.homenet) by smtp2.home.nl with esmtp (Exim 4.30) id 1DKjuQ-00042O-Ad for freebsd-questions@freebsd.org; Sun, 10 Apr 2005 23:23:58 +0200 From: Danny Pansters To: freebsd-questions@freebsd.org Date: Sun, 10 Apr 2005 23:23:41 +0200 User-Agent: KMail/1.8 References: <20050410211318.GP23009@weller-fahy.com> In-Reply-To: <20050410211318.GP23009@weller-fahy.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504102323.42107.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Re: Question about processes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2005 21:24:01 -0000 On Sunday 10 April 2005 23:13, David J. Weller-Fahy wrote: > How does one determine which process initiated any given network > connection? Or which program (on disk) initiated the process that > initiated the network connection? > > Been searching, but not finding. > > Regards, sockstat will show you all network and unix sockets and the processes and their PIDs. If you want to know more such as the full path or so (if used when invoked), you can run ps wwwaux and grep on the PID. HTH, Dan