%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/wiki/node_modules/hooker/
Upload File :
Create Path :
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/wiki/node_modules/hooker/parent.js

var spawn = require('child_process').spawn;

function loop() {
  console.log('starting');
  console.log(this);
  //var child = spawn('./node_modules/nodeunit/bin/nodeunit', ['test']);
  var child = spawn('node', ['child.js']);
  child.stdout.on('data', function(buffer) {
    process.stdout.write(buffer);
  });
  child.on('exit', this.async());
}

var context = {
  async: function() { return loop.bind(context); }
};
loop.call(context);

Zerion Mini Shell 1.0