So, I've this scenario:
Embedded device running Debian, XAMPP and some CLI applications.
Those CLI applications are interactive, they update the data every second and the user can input commands to the terminal to change their behavior.
How can I build a WebGui in PHP/HTML start/stop/interact/read data from those applications without using a terminal? Should I use proc_open or exec? What's the best way to update the data without creating a CPU-killer loop?
Thank you.