Skip to content

Instantly share code, notes, and snippets.

@hronecviktor
Created October 5, 2013 11:47
Show Gist options
  • Save hronecviktor/6839897 to your computer and use it in GitHub Desktop.
Save hronecviktor/6839897 to your computer and use it in GitHub Desktop.
shellDemo
import subprocess
arg="ifconfig"
shell=subprocess.Popen(arg,shell=True,stdout=subprocess.PIPE)
data = shell._communicate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment