I am trying to use Python subprocess to call a command recursively. To summarize what I am doing, command "info" has multiple sub-commands that does various functions, i.e.
info list
info copy
info share
info run-script -f <script_file to run>
The problem is the info run-script command. On a command terminal, if someone input
info run-script -f script.sc
Content of script.sc:
info list
info copy
Then in the code I open a subprocess and call info: subprocess(['info', 'list'])
, when I do this, the process appeared to be lost and never came back. Is it because there is already an instance of info running? Has anyone run into this and have a solution or explanation?
Thanks, Matt