From owner-freebsd-questions@FreeBSD.ORG Sun Apr 10 21:51:45 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 4E1CC16A4CE for ; Sun, 10 Apr 2005 21:51:45 +0000 (GMT) Received: from weller-fahy.com (pD9FFEE8B.dip.t-dialin.net [217.255.238.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0589343D3F for ; Sun, 10 Apr 2005 21:51:43 +0000 (GMT) (envelope-from dave-lists-freebsd-questions@weller-fahy.com) Received: (qmail 87553 invoked by uid 1001); 10 Apr 2005 21:51:35 -0000 Date: Sun, 10 Apr 2005 23:51:35 +0200 From: "David J. Weller-Fahy" To: freebsd-questions@freebsd.org Message-ID: <20050410215113.GQ23009@weller-fahy.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <20050410211318.GP23009@weller-fahy.com> <20050410213645.GA27742@Grumpy.DynDNS.org> <20050410211318.GP23009@weller-fahy.com> <200504102323.42107.danny@ricin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050410213645.GA27742@Grumpy.DynDNS.org> <200504102323.42107.danny@ricin.com> X-URL-Me: http://weller-fahy.com X-Accept-Language: en X-Location: Germany, Gangelt, Hof Grootfeld User-Agent: Mutt/1.5.9i 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:51:45 -0000 * Danny Pansters [2005-04-10 23:26 +0200]: > 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. That's exactly what I was looking for, Thanks! * David Kelly [2005-04-10 23:37 +0200]: > Read the man page for ps, specifically "ps -j" and variations of. What > you are looking for is the ppid, Parent Process ID. Might find a > process was started by inetd this way. > > netstat is the other tool you are looking for, to list open connections. > > The proc filesystem may also help associate open connections with > running processes. man procfs. I've tried netstat before, no luck - it shows open connections, but I was never able to get the process/program from it. I had skimmed the ps man page, but not read through it thoroughly - I'll rectify that. ;] Regards, -- dave [ please don't CC me ]