title: Running a command with gulp to start Node.js server
body: <p>So I am using gulp-exec (<a href="https://www.npmjs.com/package/gulp-exec">https://www.npmjs.com/package/gulp-exec</a>) which after reading some of the documentation it mentions that if I want to just run a command I shouldn't use the plugin and make use of the code i've tried using below.</p>
  
  <pre><code>var    exec = require('child_process').exec;
  
  gulp.task('server', function (cb) {
    exec('start server', function (err, stdout, stderr) {
      .pipe(stdin(['node lib/app.js', 'mongod --dbpath ./data']))
      console.log(stdout);
      console.log(stderr);
      cb(err);
    });
  })
  </code></pre>
  
  <p>I'm trying to get gulp to start my Node.js server and MongoDB. This is what i'm trying to accomplish. In my terminal window, its complaining about my</p>
  
  <pre><code>.pipe
  </code></pre>
  
  <p>However, I'm new to gulp and I thought that is how you pass through commands/tasks. Any help is appreciated, thank you.</p>