Commit fa26ac37 authored by shangbj's avatar shangbj

update

parent b596f1b5
......@@ -3,6 +3,11 @@
// process.stdin.on('data', (data) => {
// console.log('++++', data)
// });
const shell = require('shelljs')
console.log(shell.exec(read))
\ No newline at end of file
const exec = require('child_process').exec
exec(`read`, function(err, stdout,stderr){
console.log('err',err)
console.log('stdout',stdout)
console.log('stderr',stderr)
})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment