开发者

how to use linux commands in JavaScript?

开发者 https://www.devze.com 2023-02-15 13:10 出处:网络
I need to use some of the Linux commands in the JavaScript. Is it possible to do 开发者_开发问答that?? If yes what\'s the syntax for the same??In Node.js you can spawn child processes (amongst others:

I need to use some of the Linux commands in the JavaScript. Is it possible to do 开发者_开发问答that?? If yes what's the syntax for the same??


In Node.js you can spawn child processes (amongst others: run a linux command) with a child_process.


It's not possible. You can't access the user's (file)system with Javascript because that would be a pretty huge security leak.

0

精彩评论

暂无评论...
验证码 换一张
取 消