Skip to content

Instantly share code, notes, and snippets.

@cmdallas
Last active January 26, 2018 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmdallas/d8c8b7f8585ef5945218cba2eef6c628 to your computer and use it in GitHub Desktop.
Save cmdallas/d8c8b7f8585ef5945218cba2eef6c628 to your computer and use it in GitHub Desktop.
def sh(*args):
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
stdout, _ = proc.communicate()
return stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment