Python ejecutar comando con variable
import os
arglist = 'arg1 arg2 arg3'
bashCommand = "/bin/bash script.sh " + arglist
os.system(bashCommand)
Merwanski
import os
arglist = 'arg1 arg2 arg3'
bashCommand = "/bin/bash script.sh " + arglist
os.system(bashCommand)