Skip to main content

subprocess - Shell Commands

subprocess.run() Basics

0:00
LearnStep 1/4

Running Commands

subprocess: Running External Commands

The subprocess module lets you spawn new processes and connect to their input/output.

Basic Usage with run()

python

⚠️ Always Use List Form

python