Skip to content

Instantly share code, notes, and snippets.

@maximd
Last active March 23, 2016 15:39
Show Gist options
  • Save maximd/a2bb6b64944473fe2677 to your computer and use it in GitHub Desktop.
Save maximd/a2bb6b64944473fe2677 to your computer and use it in GitHub Desktop.
Print shared library dependencies
#!/usr/bin/env python
"""Print shared library dependencies."""
import subprocess
p = subprocess.Popen(['ldd', '/lib/libc.so.6', stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, errors = p.communicate()
print output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment