title: How not to wait for finishing child process in Node.js?
body: <p>actually I run my exec task in an async function. After execution a software starts and runs in a loop.</p>
  <p>After this execution, my node.js app stops going on with the code.</p>
  <p>How can I start running another app out of node.js and ignore the result and go on with the code?</p>
  <pre><code>import util = require('util');
  
  const exec = util.promisify(require('child_process').exec);
  export class ExecClass{
      public static async run(...parameters: (number | string)[]) {
          const app=parameters[0];
          parameters=parameters.slice(1);
          const cmd = app+ &quot; &quot; + parameters.join(&quot; &quot;);
          const { stdout, stderr } = await exec(cmd);
      }
  }
  </code></pre>
  <p><strong>EDIT</strong>:</p>
  <p>After my calling code I just make some edits in my database.</p>
  <p>my calling code:</p>
  <pre><code>import {ExecClass} from &quot;./exec-class&quot;;
  async function run() {
      await ExecClass.run(cmd, data.id, data.startDate, data.endDate, data.idx);
  }
  </code></pre>