How to invoke Linux command with JavaScript

后端 未结 3 752
盖世英雄少女心
盖世英雄少女心 2021-01-22 05:41

I am new in JavaScript, and now I want to run a Linux application in JavaScript and show the result in a web page. It all happens in client without a server. But for security is

3条回答
  •  逝去的感伤
    2021-01-22 06:30

    Can't be done.

    JavaScript cannot interact with the users system in any way.

    The only thing you can do is send a request to a server, which executes the command and sends the response back.

提交回复
热议问题