dimanche 15 mars 2015

is it possible to have node run a python script from sudo?

I want to run a python script from nodeJS script. The Python script is called light.py and the nodeJS file is called index.js Caveat is that you must sudo


Question: How can I write a script in node.js run "sudo python light.py" when I execute node index.js?


index.js



//i dont know where to even start

Aucun commentaire:

Enregistrer un commentaire