diff --git a/kitchenradio/app/radio.js b/kitchenradio/app/radio.js index 5166a54..2ee118c 100644 --- a/kitchenradio/app/radio.js +++ b/kitchenradio/app/radio.js @@ -78,8 +78,8 @@ exports.play = function(idx) { } } - var catProcess = exec('cat ' + m3u + ' | grep http://'); - catProcess.stdout.on('data', function(data) { + var catCmd = 'cat ' + m3u + ' | grep http://'; + exec(catCmd, function(error, stdout, stderr){ Log.inspect('Radio: Play', data); });