Subprocess with shell disabled
Section: Regular expressions and subprocess
Subprocess with shell disabled
python
python
import subprocess
subprocess.run(["ls", "-la"], check=True)Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Regular expressions and subprocess