I used nodeJS for execute linux command but when i execute command than if "myWaveFile.wav" file generated already than ask can you overwite it? [Y/N] . But when using NodeJS execute command that time not ask anything and req. failed after some time.
var sys = require('sys');
var exec = require('child_process').exec;
var _cmd = "avconv -i /root/builds/SpeechRecognition/records/wave_file.wav -acodec pcm_s16le -ar 16000 /root/builds/SpeechRecognition/records/myWaveFile.wav";
//ExecCMD function call from other files
exports.ExecCMD = function(_cmd, callback){
exec(_cmd, function (error, stdout, stderr){
//sys.puts(stdout);
callback(error, stdout, stderr);
});
};