开发者

how to use linux commands in JavaScript?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜