Skip to content

Instantly share code, notes, and snippets.

@Fclem
Fclem / lsof.py
Last active April 19, 2017 11:37 — forked from kohenkatz/lsof.py
lsof utility wrapper copied from http://www.remix.net/blog/?p=130
#!/usr/bin/python
from __future__ import print_function
from subprocess import Popen, PIPE
from distutils.spawn import find_executable
import re
class LsOf(object):
"""
lsof wrapper class