mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
15 lines
303 B
JavaScript
15 lines
303 B
JavaScript
|
|
var spawn = require('child_process').spawn,
|
|
grep = spawn('top', [], { stdio: 'inherit' });
|
|
|
|
|
|
var http = require('http');
|
|
|
|
|
|
var normal = require('child_process').fork('examples/child.js', ['normal']);
|
|
|
|
http.createServer(function(req, res) {
|
|
res.writeHead(200);
|
|
res.end('hoy');
|
|
}).listen(8010);
|