Running a python script in the background using child_process (node js)
<p>I have a python script <strong>test.py</strong> on a raspberry pi which needs to be running in the background. Using the CLI, I do this:</p>

<pre><code>python test.py &amp;
</code></pre>

<p>But, how do I do the same using the child_process in node js.</p>

<pre><code>var spawn = require("child_process").spawn;
var process = spawn("python",["/path/to/test.py", "&amp;"]);
</code></pre>

<p>I have this code and this seems to be not working. Please suggest possible ways to achieve this. </p>