I am performing an image magick identify command via nodejs child_process.exec. and using the string returned from stdout in my script.
Everything works fine but the call prints the stdout msg on console, if the server is not restarted and the console is not cleared for some time, the console becomes messy with stdout messages.
Relevant Code :
var exec = require('child_process').exec;
exec('identify -verbose '+originalFilePath,function(err,stdout,stderr){
var strOut = stdout; // Do something with stdout
});
I just want to disable the printing of the returned result on the console.