Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
call shell script from python
user66531
Programming language:
Python
2021-04-22 22:16:16
0
Q:
call shell script from python
yhmyo05
Code:
Python
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
how to use functions from another file in python
python use functions from another file
how to get calling function in python
python execute shell command without waiting
python spawn shell
input command in python shell
How to run bash script in python
how to use function of python file in another python file
how to call a function in python
python execute shell command and get output
how to call a python script from another python script
run python script powershell
how to execute a python file from another python file
use python shell with git bash
how to execute bash commands in python script
execute command in python script
New to Communities?
Join the community