A simple shell function defined in Python

From , 4 Years ago, written in Python, viewed 54 times.
URL https://pastebin.vip/view/5133aa1d
  1. def shell(*cmd):
  2.     pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  3.     stdout, stderr = pipe.communicate()
  4.     return pipe.returncode, stdout, stderr

Reply to "A simple shell function defined in Python"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website