lib/probes/ReplProbe.js
function(command) {
      var t = this;
      t.shellCmd = ChildProcess.exec(command, function(err, stdout, stderr) {
        if (err) {
          var outstr = 'exit';
          if (err.code) {
            outstr += ' (' + err.code + ')';
          }
          if (err.signal) {
            outstr += ' ' + err.signal;
          }
          t._output(outstr);
          return null;
        }
        if (stdout.length) {
          t._output(stdout);
        }
        if (stderr.length) {
          t._output(stderr);
        }
        t.shellCmd = null;
        t._output(CONSOLE_PROMPT);
      });
      return null;
    }
function(command) {
      var t = this;
      t.shellCmd = ChildProcess.exec(command, function(err, stdout, stderr) {
        if (err) {
          var outstr = 'exit';
          if (err.code) {
            outstr += ' (' + err.code + ')';
          }
          if (err.signal) {
            outstr += ' ' + err.signal;
          }
          t._output(outstr);
          return null;
        }
        if (stdout.length) {
          t._output(stdout);
        }
        if (stderr.length) {
          t._output(stderr);
        }
        t.shellCmd = null;
        t._output(CONSOLE_PROMPT);
      });
      return null;
    }
function ( command ) { var t = this ; t . shellCmd = ChildProcess . exec ( command , function ( err , stdout , stderr ) { if ( err ) { var outstr = 'exit' ; if ( err . code ) { outstr += ' (' + err . code + ')' ; } if ( err . signal ) { outstr += ' ' + err . signal ; } t . _output ( outstr ) ; return null ; } if ( stdout . length ) { t . _output ( stdout ) ; } if ( stderr . length ) { t . _output ( stderr ) ; } t . shellCmd = null ; t . _output ( CONSOLE_PROMPT ) ; } ) ; return null ; }
Run a shell command and emit the output to the browser.

@private
@method _runShellCmd
@param {String} command - The shell command to invoke
Run a shell command and emit the output to the browser .