Skip to content

Instantly share code, notes, and snippets.

@sumoward
Created June 24, 2014 10:38
Show Gist options
  • Save sumoward/9a9b7794d4d26a1db58e to your computer and use it in GitHub Desktop.
Save sumoward/9a9b7794d4d26a1db58e to your computer and use it in GitHub Desktop.
import subprocess
proc = subprocess.Popen("netstat",stdout=subprocess.PIPE,stderr=subprocess.PIPE)
data = proc.communicate()
print (data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment