GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.32k stars 821 forks source link

[BUG]unbuffer does not work #3655

Open Claiyc opened 3 years ago

Claiyc commented 3 years ago

User Story

As a lgsm user, I want the unbuffer command to work correctly so that steamcmd update progress will be displayed smoothly, allowing for a better user experience and 3rd party programs to fetch the installation progress more frequently.

Basic info

Further Information

A few years ago, the unbuffer command was implemented into core_dl.sh (see #275 ). Unfortunately it doesn't seem to work anymore. Steamcmd progress output is only being displayed every couple of minutes (I read something about 4kb in text per flush), often resulting in no progress being displayed at all (at least for smaller servers that are downloaded relatively fast).

To Reproduce

Steps to reproduce the behaviour:

  1. Run install for a server using steamcmd.
  2. Watch the steamcmd update progress being displayed unsmoothely or not at all

Expected behaviour

steamcmd progress should be updated every second or so.

johnoclockdk commented 3 years ago

+1 for this

dgibbs64 commented 3 years ago

From what I remember unbuffer was generally unreliable as a solution. I dont know if there is an alternative solution for unbuffer

Claiyc commented 3 years ago

I‘ve been doing some research for quite some time now. Seems to be something a few people already asked for in relation to steamcmd…

h3o66 commented 2 years ago

This has probably as well something to do with #3010