Last active
March 23, 2016 15:39
-
-
Save maximd/a2bb6b64944473fe2677 to your computer and use it in GitHub Desktop.
Print shared library dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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