Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python execute command with variable

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

os.system(bashCommand)
 
PREVIOUS NEXT
Tagged: #python #execute #command #variable
ADD COMMENT
Topic
Name
8+7 =