Answer the question
In order to leave comments, you need to log in
How to implement the launch of server utilities through JavaScript (Node.js)?
The task is to write a single-page web application that would allow the user to run server utilities through a web interface. Server on Node.js (express). How to launch server utilities in a js script? How to store the history of running utilities on the server? I'm not strong in the back-end, I'll be glad for any hint. Thank you.
Answer the question
In order to leave comments, you need to log in
Read about launching here - https://dzone.com/articles/understanding-execfile-...
Storage - just write the received command to a file before passing it on for execution. Either to a file or to a database, whichever you prefer. Send a command with parameters, for example, through a form that sends a POST request to the server, analyze the information received there, collect parameters for execution in the desired form, and, in fact, execute it. It is not entirely clear, to be honest, the level of detail of the answer that you need, do you need an algorithm or ready-made code?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question