I am enjoying using ssh in vscode.
I keep having the problem of disconnecting while my python script is running.
I would like a way to have the "Run Python In Terminal" Button run screen first, so if I disconnect, I can reconnect to the running terminal.
Currently it runs this command:
"python script.py"
I would like it to automatically run:
"screen python script.py"
It could also be a once time setup similar to "source /path/activate" runs before the python script is executed.
Some checking to make sure there are not duplicate screen sessions running would be a plus, but basic functionality is needed first.
I search for a way to do this. If there is a shortcut for this functionality, please let me know.
Thank you
More on screen:
https://linuxize.com/post/how-to-use-linux-screen/
I am enjoying using ssh in vscode.
I keep having the problem of disconnecting while my python script is running.
I would like a way to have the "Run Python In Terminal" Button run screen first, so if I disconnect, I can reconnect to the running terminal.
Currently it runs this command:
"python script.py"
I would like it to automatically run:
"screen python script.py"
It could also be a once time setup similar to "source /path/activate" runs before the python script is executed.
Some checking to make sure there are not duplicate screen sessions running would be a plus, but basic functionality is needed first.
I search for a way to do this. If there is a shortcut for this functionality, please let me know.
Thank you
More on screen:
https://linuxize.com/post/how-to-use-linux-screen/