Answers for "code to run .sh file python"

5

How to run bash script in python

import subprocess
print "start"
subprocess.call("sleep.sh")
print "end"
Posted by: Guest on May-20-2020
0

python sh command

import os
stream = os.popen('echo Returned output')
output = stream.read()
output
Posted by: Guest on November-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language