From 0988d59529fc3ed5d82f4b0b24b169aaca4da37c Mon Sep 17 00:00:00 2001 From: Annika Backstrom Date: Thu, 22 Dec 2016 16:20:01 +0000 Subject: [PATCH] Remove sudo from mpg321 call We'll just run the parent process as root. --- player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.js b/player.js index 145f902..89d7d3e 100644 --- a/player.js +++ b/player.js @@ -1,7 +1,7 @@ const glob = require('glob'); const spawn = require('child_process').spawn; const tag_reader = spawn('/home/annika/rfid/run-tag-reader'); -const player = spawn('/usr/bin/sudo', ['-n', '/usr/bin/mpg321', '-R', '-']); +const player = spawn('/usr/bin/mpg321', ['-R', '-']); tag_reader.on('error', function(err) { console.log(`[tag_reader:error] ${err}`);