I'm trying to execute commands sequentially through Python.
My aim is to do something like this:
command1
calculate something
command2
...
I want the CMD to remain opened after executing 'command1' , since 'command2' is dependent on 'command1'.
I've tried these answers with no results:
This one gives me the error:
ValueError: write to closed file
while executing two communicate commands.
Python Popen - how to execute commands in nested sub shell using python
Execute Commands Sequentially in Python
Thanks in advance!