Skip to content

Instantly share code, notes, and snippets.

@mururu
Last active April 15, 2019 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mururu/95bcfdd8e64b860aca2c88f37796e470 to your computer and use it in GitHub Desktop.
Save mururu/95bcfdd8e64b860aca2c88f37796e470 to your computer and use it in GitHub Desktop.
for p in $(ps -aux | grep -v grep | awk {'print $2'}); do
x=$(ls -l "/proc/${p}/exe")
if [ $?=0 ]; then
y=$(echo $x | awk {'print $11'})
echo $y
ldd $y
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment