How to call a shell script from python code?
1 Replies
import subprocess
subprocess.call(["./shell.sh"])
# Make sure that "shell.sh" has "+x" permissions
You can use this code to call a shell script.
Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.
Follow us on:
Quick Links
Policies
Subscribe to get latest updates