python3 subprossecc get output from command 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])