python subprocess $var code example
Example: pass variable in subprocess run python
#ran in python 3.8.x
cmd = "ls"
cmd_args = "-l"
subprocess.run([cmd, cmd_args])
#ran in python 3.8.x
cmd = "ls"
cmd_args = "-l"
subprocess.run([cmd, cmd_args])