Python logo

Table of Contents

  • subprocess — Subprocess management
    • Using the subprocess Module
      • Frequently Used Arguments
      • Popen Constructor
      • Exceptions
    • Security Considerations
    • Popen Objects
    • Windows Popen Helpers
      • Windows Constants
    • Older high-level API
    • Replacing Older Functions with the subprocess Module
      • Replacing /bin/sh shell command substitution
      • Replacing shell pipeline
      • Replacing os.system()
      • Replacing the os.spawn family
      • Replacing os.popen()
    • Legacy Shell Invocation Functions
    • Notes
      • Timeout Behavior
      • Converting an argument sequence to a string on Windows
      • Disable use of posix_spawn()

Previous topic

concurrent.interpreters — Multiple interpreters in the same process

Next topic

sched — Event scheduler