Answers for "python execute command with variable"

1

python execute command with variable

import os
 
arglist = 'arg1 arg2 arg3'
bashCommand = "/bin/bash script.sh " + arglist 

os.system(bashCommand)
Posted by: Guest on February-24-2022

Code answers related to "python execute command with variable"

Python Answers by Framework

Browse Popular Code Answers by Language