I'm wondering how to open cmd of python file that's on the run now.
The situation is, I set schedule of my computer to turn on automatically and open python flask server. Then the webpage is working right. However, when I turn on the monitor and try to see what's going on inside, there's no cmd window on my computer. I wanna open the cmd window and check what's going on in the server on run, but can't find where to see.
Is there any idea? Thank you!
Please do these steps:
import the os module:
import os
then do:
os.system("COMMAND TO RUN HERE")
2.1m questions
2.1m answers
60 comments
56.9k users