upb: you're right, this code might be relevant http://nodejs.org/docs/latest/api/child_process.html