Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Like Ruby 'exec' but for Node.js?

I'm looking for a command like Ruby's kernel 'exec' but for Node.js. Any thoughts?

like image 488
JP Richardson Avatar asked Dec 16 '22 06:12

JP Richardson


1 Answers

I took the advice of @phs and built a native Node.js module. A bit of details can be found here. Github source here.

You can use it like so:

npm install kexec

var kexec = require('kexec');
kexec("your_process with args here");
like image 193
JP Richardson Avatar answered Jan 04 '23 09:01

JP Richardson