Run command on client OS with javascript
-
Hi!
I’m developing a WordPress plugin, where I want to detect the client’s OS. In particular, the Ubuntu version.
Most solutions I came across only go as far as detecting that it is a “Linux”. I could overcome this, if I could run directly something like: “lsb_release -a” and then parse it.
Is there a way for me to run a command via Javascript in the client’s OS?
I already attempted several solutions that revolve around javascript “child_process” and WP wp_enqueue_script, but I did not manage to make it work.
https://github.com/rhysd/node-ubuntu-version/blob/master/index.ts
https://stackoverflow.com/questions/20643470/execute-a-command-line-binary-with-node-jsCan anyone help?
Thank you!
Jhonny
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Run command on client OS with javascript’ is closed to new replies.