From 135b645ad2a85a8b1ee32419ec39bec8120ef666 Mon Sep 17 00:00:00 2001 From: coldstar Date: Tue, 25 May 2021 15:21:44 -0700 Subject: [PATCH] 05/25/2021 03:21:44 PM MST --- routes/baseActionsRouter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index f676536..09aec14 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -314,7 +314,8 @@ router.get("/address/:address", function(req, res) { const { exec } = require('child_process'); - var yourscript = exec('/usr/local/bin/vivo-cli", [" -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'', + //var yourscript = exec('/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'', + var yourscript = exec('whoami', (error, stdout, stderr) => { console.log(stdout); console.log(stderr);