Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { exec } = require('child_process');
- exec('pgdump PON EL RESTO DE PARAMETROS', (err, stdout, stderr) => {
- if (err) {
- // node couldn't execute the command
- return;
- }
- console.log(`stdout: ${stdout}`);
- console.log(`stderr: ${stderr}`);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement