Heloo Experts:
I am getting the "SyntaxError: missing ) after argument list" error
for the code below:
==========================================
function execute(command) {
const exec = require('child_process').exec
exec(command, (err, stdout, stderr) => {
process.stdout.write(stdout)
})
}
execute("sudo su mqm -c 'echo "dis qmgr" | runmqsc TEST'");
============================================
I am not sure how to manage the "" and ''.
Pls advise, Thank you !!
I am getting the "SyntaxError: missing ) after argument list" error
for the code below:
==========================================
function execute(command) {
const exec = require('child_process').exec
exec(command, (err, stdout, stderr) => {
process.stdout.write(stdout)
})
}
execute("sudo su mqm -c 'echo "dis qmgr" | runmqsc TEST'");
============================================
I am not sure how to manage the "" and ''.
Pls advise, Thank you !!