myTest01 / analysis /utils /__init__.py
meng2003's picture
Upload 357 files
2d5fdd1
raw
history blame contribute delete
312 Bytes
import subprocess
def run_bash_command(bashCommand):
print(bashCommand)
try:
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
return output
except:
print("couldn't run bash command, try running it manually")