From owner-freebsd-stable@FreeBSD.ORG Sat Jun 10 18:37:40 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B10B016A6FE for ; Sat, 10 Jun 2006 18:37:40 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34CAA48316 for ; Sat, 10 Jun 2006 13:49:33 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by nf-out-0910.google.com with SMTP id q29so265075nfc for ; Sat, 10 Jun 2006 06:49:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to; b=CSLTmlhvqFjjicYoF5lRaqaPiYqXsk1WI5bdTAifMuiatWtBP4PL+J5o6EIN6Dshk7+dRG1IuxnHaWi16tOf+jtfZmwlCnu+L9WtyUpdQtxZdEz31PZd4R20+5fK7r4oQ0QPCq6Zssldx9UoA0JTIKnpjO8cDR2edj0hdFpOwe0= Received: by 10.48.241.20 with SMTP id o20mr3258334nfh; Sat, 10 Jun 2006 06:49:33 -0700 (PDT) Received: from roadrunner.q.local ( [84.149.91.18]) by mx.gmail.com with ESMTP id a23sm4431474nfc.2006.06.10.06.49.32; Sat, 10 Jun 2006 06:49:32 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.6/8.13.6) with ESMTP id k5ADndmE004534 for ; Sat, 10 Jun 2006 15:49:39 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.6/8.13.6/Submit) id k59J9Foj004161 for freebsd-stable@freebsd.org; Fri, 9 Jun 2006 21:09:15 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Fri, 9 Jun 2006 21:09:15 +0200 From: Ulrich Spoerlein To: freebsd-stable@freebsd.org Message-ID: <20060609190915.GC1037@roadrunner.q.local> Mail-Followup-To: freebsd-stable@freebsd.org References: <4486574F.9040108@bitfreak.org> <57d710000606070820j6291f74el6b6880e681899904@mail.gmail.com> <20060607195726.GD25975@riverside.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GZVR6ND4mMseVXL/" Content-Disposition: inline In-Reply-To: <20060607195726.GD25975@riverside.org> Subject: Re: How can I know which files a proccess is accessing? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 18:37:40 -0000 --GZVR6ND4mMseVXL/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael Hall wrote: > Yes, it does look handy, another new usage for 'find'. >=20 > Typically a 'grep ... | awk ...' can be combined, resulting in a small > improvement: >=20 > fstat | awk '/httpd.*\/var/ { print $6 }' | xargs ... Won't buy you anything though: processing is I/O bounded. Ulrich Spoerlein --=20 PGP Key ID: 20FEE9DD Encrypted mail welcome! Fingerprint: AEC9 AF5E 01AC 4EE1 8F70 6CBD E76E 2227 20FE E9DD Which is worse: ignorance or apathy? Don't know. Don't care. --GZVR6ND4mMseVXL/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEicdb524iJyD+6d0RAlbiAKChfmUZmaKIUQYeTZoUG4F7yWlY/ACfZ569 ukxpSKeSW7Za1qcLXOreb2A= =iNb+ -----END PGP SIGNATURE----- --GZVR6ND4mMseVXL/--