Is it possible to open a terminal from an ongoing subprocess in Python?

Viewed 156

I am using the subprocess module in Python to navigate and run commands on behalf of a user. I now want to be able to open the terminal session so that the user can enter their own commands.

I have used Tmux and Screen to create a shared terminal session and I have had no luck.

When initiating the shared terminal session with Tmux through the subprocess module I get the error:

"Open terminal failed: not a terminal"

and with Screen, I get the error:

"Must be connected to a terminal"

Any help would be greatly appreciated.

0 Answers
Related