javascript (spidermonkey) how does one run a linux command from js shell?

后端 未结 5 545
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-20 04:17

I\'m stumped and feeling stupid. I\'ve tried every search combination I can think of to figure this out. It seems simple, but being new to javascript I\'m not seeing anythin

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-20 04:43

    For linux I've found that EJScript has file support that works out of the box. It's letting me do what I want to do anyway. I'll still try to get spidermonkey compiled with the File_Object flag because I'm stubborn, but so far I have no problem recommending EJScript for programmers who want to try out serverside javascript.

提交回复
热议问题