var shell = require("shelljs"); var output = shell.exec("bash ./test.sh",{silent:true,async:false}).output; console.log(output); test.sh: echo "Hey there"
確定! 回上一頁