From 59109492190f1d8d8f4462d1bc1c6d00fe67a49b Mon Sep 17 00:00:00 2001 From: Gerrit Linnemann Date: Mon, 2 Nov 2015 17:09:20 +0100 Subject: [PATCH] ready4testing --- kitchenradio/app/radio.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); });