hyperion-start / hyperion-core

A Tmux based System Startup Engine
GNU General Public License v3.0
8 stars 3 forks source link

Tee logging stdbuf side effect #38

Closed DavidPL1 closed 5 months ago

DavidPL1 commented 5 years ago

because tee redirects stdout to a file, the stream thinks its output is not displayed on a terminal anymore, which changes its line buffering from linebuffering to EOF (I think). This defeats the purpose of using tee to have a live updated logger output in a file. Putting stdbuf -oL -eL resolves this issue, because it forces stdout and stderr to use linebuffering again, but this needs to be done by the user. Maybe I can find a way to include this automatically in the start command.