title: Custom NodeJS Grunt Command
body: <p>I have a custom grunt task that looks like this:</p>
  
  <pre><code>grunt.registerTask('list', 'test', function()
  {
      var child;
      child = exec('touch skhjdfgkshjgdf',
        function (error, stdout, stderr) {
          console.log('stdout: ' + stdout);
          console.log('stderr: ' + stderr);
          if (error !== null) {
            console.log('exec error: ' + error);
          }
      });
  });
  </code></pre>
  
  <p>This  works however when I try to run the pwd command, I don't get any output.  The end goal of this is to be able to compile sass files with grunt and I figure the best way of doing that is by running the the command line command to compile sass through grunt however I want to get some sort of output to the screen that is worked properly.  Is there any reason this code would not print the results of running unix commands through grunt/nodejs?</p>