Skip to content

Instantly share code, notes, and snippets.

@jtbg
Created January 13, 2017 15:48
Show Gist options
  • Save jtbg/01b31bf21b7384fa6bc1ab90ec9819e2 to your computer and use it in GitHub Desktop.
Save jtbg/01b31bf21b7384fa6bc1ab90ec9819e2 to your computer and use it in GitHub Desktop.
import subprocess
arp_output = subprocess.Popen(('arp', '-a'), stdout=subprocess.PIPE)
ipout = arp_output.communicate()[0]
print ipout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment