const exec = require("child_process").exec;
exec("ls -la", function (error, stdout, stderr) {
if (error) {
console.log("Error: " + error);
return;
}
if (stderr) {
console.log("stderr: " + stderr);
return;
}
console.log("stdout: " + stdout);
});