No subject
Fri Jan 31 06:23:24 EST 2014
>From suter Fri Nov 16 18:54:43 2001
Return-Path: <majordom at caliburn.humbug.org.au>
Received: from diadora.client.uq.net.au (IDENT:root at diadora-2 [10.0.1.2])
by zwitterion.humbug.org.au (8.12.1/8.12.1/Debian -2) with ESMTP id fAG8shas004695
for <suter at zwitterion.humbug.org.au>; Fri, 16 Nov 2001 18:54:43 +1000
Received: from caliburn (mail at caliburn.humbug.org.au [203.15.51.6])
by diadora.client.uq.net.au (8.12.1/8.12.1/Debian -2) with ESMTP id fAG8sitQ020009
for <suter at zwitterion.humbug.org.au>; Fri, 16 Nov 2001 18:54:44 +1000
Received: from majordom by caliburn with local (Exim 3.12 #1 (Debian))
id 164eOU-00036o-00
for <general-outgoing at lists.humbug.org.au>; Fri, 16 Nov 2001 18:30:38 +1000
Received: from c781.rochd1.qld.optusnet.com.au ([203.164.198.20] helo=zwitterion.humbug.org.au)
by caliburn with esmtp (Exim 3.12 #1 (Debian))
id 164eOR-00036f-00
for <general at lists.humbug.org.au>; Fri, 16 Nov 2001 18:30:35 +1000
Received: from zwitterion.humbug.org.au (IDENT:suter at localhost [127.0.0.1])
by zwitterion.humbug.org.au (8.12.1/8.12.1/Debian -2) with ESMTP id fAG8Tuas004214
for <general at lists.humbug.org.au>; Fri, 16 Nov 2001 18:29:56 +1000
Received: (from suter at localhost)
by zwitterion.humbug.org.au (8.12.1/8.12.1/Debian -2) id fAG8Tut2004212
for general at lists.humbug.org.au; Fri, 16 Nov 2001 18:29:56 +1000
From: Mark Suter <suter at zwitterion.humbug.org.au>
Date: Fri, 16 Nov 2001 18:29:56 +1000
To: Humbug General <general at lists.humbug.org.au>
Subject: Re: [H-GEN] Fun One-Liner
Message-ID: <20011116182956.D12754 at zwitterion.humbug.org.au>
Mail-Followup-To: Humbug General <general at lists.humbug.org.au>
References: <87elmzw688.fsf at freezer.home>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="2/5bycvrmDh4d1IB"
Content-Disposition: inline
In-Reply-To: <87elmzw688.fsf at freezer.home>
User-Agent: Mutt/1.3.23i
Precedence: bulk
Reply-To: general at lists.humbug.org.au
X-Loop: general at lists.humbug.org.au
List-Help: <mailto:majordomo at lists.humbug.org.au?subject=help>
List-Post: <mailto:general at lists.humbug.org.au>
List-Subscribe: <mailto: general-request at lists.humbug.org.au?subject=subscribe>
List-Id: semi-serious discussions about Humbug and Unix-related topics <general at lists.humbug.org.au>
List-Unsubscribe: <mailto: general-request at lists.humbug.org.au?subject=unsubscribe>
List-Archive: <http://archive.humbug.org.au/humbug-general/>
Sender: Majordomo <majordom at caliburn.humbug.org.au>
Status: RO
Content-Length: 1784
Lines: 52
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
--2/5bycvrmDh4d1IB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Folks,
Jason wrote:
> I wrote this short one-liner to find files holding references to
> upgraded libraries, since these processes keep the deleted file's link
> count above zero, stopping its blocks from being freed (eg libc is
> upgraded, and sshd, which is linked against it, keeps a reference to a
> temporary file created during the upgrade, which continues to use disk
> space on a starved root filesystem)[1].
You call that monster a one-liner!? Try the following on for
size. I've opted for bug-for-bug compatibility.
grep -l 'deleted)$' /proc/*/maps |
perl -F/ -ane'++$P{$F[2]}}{print grep{$P{(split)[1]}}`ps awwux`'
Yours sincerely,
-- Mark John Suter | I know that you believe you understand
suter at humbug.org.au | what you think I said, but I am not sure
gpg key id F2FEBB36 | you realise that what you heard is not
mobile 0411 262 316 | what I meant. Robert J. McCloskey
--2/5bycvrmDh4d1IB
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key available from Keyservers or http://zwitterion.org/
iEYEARECAAYFAjv0zoQACgkQ7EsZXfL+uzb1gACfZdhODQ5+yvo/sqgTsf50GWQf
Nl8AnRV1kMm45QGhDi18lkT+ypmomz8D
=IvPY
-----END PGP SIGNATURE-----
--2/5bycvrmDh4d1IB--
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list