I made a python script which communicates with a web server using an infinite loop. I want to log every communication data to a file and also monitor them from terminal at same time. so I used tee command like this.
python client.py | tee logfile
however, I got nothing from terminal nor logfile. the python script is working fine. what is happening here? am I missing something?
some advice would be appreciated. thank you in advance.