comando shell usando nó
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);
});
Pleasant Partridge