remote icon indicating copy to clipboard operation
remote copied to clipboard

detect in terminal certain commands which never stop

Open dogi opened this issue 6 years ago • 6 comments
trafficstars

  • top
  • iotop
  • ping
  • screen
  • vim
  • less
  • ...

and give feedback in form of this command are blocked in this serial line by line interface cause they never terminate

other question is should we do this in https://github.com/treehouses/remote or https://github.com/treehouses/control

dogi avatar Jan 28 '19 13:01 dogi

we can do this in remote to avoid sending stuff to the server, or we can do this in control and control this on the code, which would make things slower (one more useless request).

we could also think to find a way to detect 'interactive' commands on control and avoid them at all

i5o avatar Jan 30 '19 23:01 i5o

Is it possible to have a more comprehensive list of interactive terminal commands or is that it? @dogi @i5o

Sriharsha-Singam avatar Feb 11 '19 16:02 Sriharsha-Singam

There is no specific way to know if a command requires user input (or maybe I'm wrong, correct me if so), but these were just some examples we provided.

The "idea" was to timeout them; perhaps a limit of 10 seconds is enough?

i5o avatar Feb 13 '19 21:02 i5o

also perhaps disable the limit for "treehouses *"?

i5o avatar Feb 13 '19 21:02 i5o

this needs to be done in @treehouses/control I think

i5o avatar Feb 13 '19 21:02 i5o

This issue is pretty bad. It seems and htop and top had been fixed for now. However, ping still results in a never ending stream. Aside from breaking "terminal", it also breaks other functions such as "status".

SeanTang001 avatar Sep 20 '20 06:09 SeanTang001