title: Chain shell commands in Node.js
body: <p>I need to <code>kextunload driver.kext &amp;&amp; kextload driver.kext</code>.</p>
  
  <p>I always use <code>child_proces</code> spawn function but don't know how to chain with it.</p>
  
  <p>Here's an example of how I use it</p>
  
  <pre><code>var spawn = require('child_process').spawn
  spawn('afplay', ['fanfare.mp3', '-t', '6']);
  </code></pre>