I would like to run commands on my home server via a web app. Is there a way to do this?
I have no interest in returning the output, I just want to execute commands like irsend when a button is pressed on the page.
I would like to run commands on my home server via a web app. Is there a way to do this?
I have no interest in returning the output, I just want to execute commands like irsend when a button is pressed on the page.
You can't execute commands directly from the browser, that is why child_process.exec()
does not work when browserify your code.
You will need to send an HTTP request of some kind to the server and have it run the command there instead (using child_process.exec()
/child_process.spawn()
).