Hacker News new | past | comments | ask | show | jobs | submit login

It really only condenses 2 calls down to one, but since I never change some of the parameters, it saves me a bit of time.

  def run( command ):
    process = subprocess.Popen(
      command, 
      stdout=subprocess.PIPE,
      stderr=subprocess.PIPE
    )
    return process.communicate()



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: