in reply to Re^2: Capture::Tiny getting stuck on ldd /proc/self/fd/1
in thread Capture::Tiny getting stuck on ldd /proc/self/fd/1
I'm running ldd on a list of paths I find to find the shared libs.
There are no shared libs in /proc. If you find any in /dev, chances are that you were hacked.
Is there a way in perl to check if path is dynamic
You could use the linux file(1) utility to check the type and look for shared object and dynamically linked in its output. I'm not aware of a perl module which provides that information.
You didn't answer the question: for what purpose? If you just want the dynamic libraries your system knows about, run ldconfig -p and parse the output. Note that most of the files it reports are symbolic links, which you might have to resolve, depending on purpose.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Capture::Tiny getting stuck on ldd /proc/self/fd/1
by choroba (Cardinal) on Jun 22, 2021 at 15:17 UTC | |
by shmem (Chancellor) on Jun 22, 2021 at 15:22 UTC | |
|
Re^4: Capture::Tiny getting stuck on ldd /proc/self/fd/1
by ovedpo15 (Pilgrim) on Jun 22, 2021 at 13:59 UTC | |
by shmem (Chancellor) on Jun 22, 2021 at 15:08 UTC | |
by ovedpo15 (Pilgrim) on Jun 22, 2021 at 15:40 UTC | |
by shmem (Chancellor) on Jun 22, 2021 at 15:57 UTC | |
by ovedpo15 (Pilgrim) on Jun 22, 2021 at 17:28 UTC |