
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Chasing the GHOST in my machine
- Date: Mon, 9 Feb 2015 14:09:23 +0100
- From: Attila Kinali <attila@example.com>
- Subject: Re: [tlug] Chasing the GHOST in my machine
- References: <54CAC2D8.6040007@gmail.com> <20150130003807.GU5717@nashi.hw.39mm.net> <CA+su7OWdYWKS3P6YmpaR0ZczaiJugmZz3u4YY0WZQHc7AN-BYA@mail.gmail.com> <54CAF35D.2090703@gmail.com> <CAAhy3ducnKbeG8E5ZXSwh7rHsdNFyXojPE7Tjh6aW3ifOV4n=w@mail.gmail.com> <20150130095124.cb57d8e6a38c978f88ec1f04@kinali.ch> <54CB4CB8.9020503@dcook.org>
- Organization: Geist
On Fri, 30 Jan 2015 09:19:52 +0000
Darren Cook <darren@example.com> wrote:
> > You can use
> > lsof +c 0 | awk '/libc-/ && /DEL/ { print $1 }' | sort -u
> > to find out which processes use an old libc and then restart those
> > individually.
>
> Can you break down what does that command does? (I guessed it would list
> all processes that link to libc and show me their version, so I expected
> a long list, but in fact I got nothing at all... now I'm wondering if it
> was stupid to run it without understanding it better... you don't work
> for the NSA do you?)
lsof +c 0
# list all open files, remove limit on name length
awk '/libc-/ && /DEL/ { print $1 }'
# on lines that match the regular expressions /libc-/ and /DEL/
# print the first record of that line (the process name),
# don't do anything otherwise.
# lsof put's a DEL on those files that are opened by some process,
# but have been deleted
sort -u
# sort all lines, remove dublicates
HTH
Attila Kinali
--
It is upon moral qualities that a society is ultimately founded. All
the prosperity and technological sophistication in the world is of no
use without that foundation.
-- Miss Matheson, The Diamond Age, Neil Stephenson
Home |
Main Index |
Thread Index