I'm running a program with large runtime and large output, so for logging while seeing the output I'm using the tee command on windows cmd.exe:
./program | tee -a program.log
the program prints live output (line after line with noticeable time gap), but the tee prints outputs only after termination of program. Is there any way to use tee with live output?
Note: The problem also persists on windows powershell.exe