title: node.js child process change a directory and run the process
body: <p>I try to run external application in node.js with child process like the following</p>
  
  <pre><code>var cp = require("child_process");
  cp.exec("cd "+path+" &amp;&amp; ./run.sh",function(error,stdout,stderr){
  })
  </code></pre>
  
  <p>However when I try to run it stuck, without entering the callback</p>
  
  <p>run.sh starts a server, when I execute it with cp.exec I expect it run asynchronously, such that my application doesn't wait until server termination. In callback I want to work with server.</p>
  
  <p>Please help me to solve this.</p>