📅  最后修改于: 2022-03-11 15:01:09.643000             🧑  作者: Mango
function exec(cmd, handler = function(error, stdout, stderr){console.log(stdout);if(error !== null){console.log(stderr)}})
{
const childfork = require('child_process');
return childfork.exec(cmd, handler);
}
exec('echo test');