I have several shell scripts and I would like to execute them by clicking on a button in the client side. How can I manage to do this?
Asked
Active
Viewed 423 times
-3
-
5What have you already done ? Where are you stuck ? Please improve your question. – jbrtrnd Jul 23 '18 at 14:49
1 Answers
2
You've tagged this node.js and angular so:
- Create an HTTP server with Node. You can use Express for this.
- Create a post route that will run the shell script
- Use a child process to run that shell script
- Attach an event handler to your button
- Have the event handler make an HTTP POST request to your server

Quentin
- 914,110
- 126
- 1,211
- 1,335