Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pass variable in subprocess run python

#ran in python 3.8.x

cmd = "ls"
cmd_args = "-l"
subprocess.run([cmd, cmd_args])
 
PREVIOUS NEXT
Tagged: #pass #variable #subprocess #run #python
ADD COMMENT
Topic
Name
2+7 =