Optimal Approach for a Website Frontend with SSH and Backend Integration?

I run Ubuntu 9.10 and occasionally execute scripts via SSH. How can I build a website interface that directly triggers these scripts without continuously polling a database?

My experience shows that using a lightweight backend framework to securely trigger scripts via SSH is a more efficient alternative to polling a database. I implemented a system where the client makes asynchronous HTTP requests to a dedicated endpoint that then executes the script in a controlled environment. The framework handles concurrency well, ensuring that each request is independent and secure. This approach reduces unnecessary resource consumption and improves responsiveness, making it a reliable solution for integrating SSH operations with a frontend interface.

hey, i’ve been tinkering with websokets to relay real time triggers from backend to frontend. might be a cool alt to polling. anyone else experinced issues or wonders on this approach?