Python выполнить команду с переменной
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)