I want to open a new cmd window and stream some text output (logs) while my python script is running (this is basically to check where I am in the script)
I can't find w way to do it and keep it open and stream my output.
Here is what I have now:
p = os.popen("start cmd", mode='w')
def log_to_cmd(process, message):
for i in range(10):
And I want to get 0 to 9 output on the same cmd window already open.
Thanks a lot for any suggestion.
use Baretail this software allows you to stream logs.
If you want to stick to cmd shell I'd suggest installing something like GNU Utilities for Win32. It has most favourites, including tail.
tail which allows you to open file like a log veiwer .