nodechild

Home   »   nodechild

const exec = require('child_process').exec;

const process = exec('dir');

​

process.stdout.on('data', function(data){

    console.log(data.toString());

});// 실행 결과

​

process.stderr.on('data', function(data){

    console.error(data.toString());

});// 실행 에러

Leave a Reply

Your email address will not be published. Required fields are marked *