Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
call shell script from python
Yuri
Programming language:
Shell/Bash
2021-05-30 13:34:38
0
Q:
call shell script from python
yhmyo05
Code:
Shell/Bash
2021-03-15 01:21:51
import subprocess subprocess.call(["./shell.sh"]) # Make sure that "shell.sh" has "+x" permissions
1
Tags
python
shell
call
script
Related
scrapy shell
python execute shell command without waiting
python execute shell command and get output
how to run shell script
python spawn shell
How to call one shell script from another shell script?
use python shell with git bash
input command in python shell
run python script powershell
New to Communities?
Join the community