Bash
Run Bash Script from Node
I recently needed a way to execute a bash script from a Node application. The premise was simple, to create an authorization protected Node/Express endpoint that could execute a bash script that lives alongside my app. My script does tasks like moving local log files and restarting processes. Node …