From 50729694ba156e790a6b179420a9b733cf0b343f Mon Sep 17 00:00:00 2001 From: coldstar Date: Tue, 25 May 2021 14:54:46 -0700 Subject: [PATCH] 05/25/2021 02:54:46 PM MST --- routes/baseActionsRouter.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index f425da0..108df9c 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -309,12 +309,11 @@ router.get("/address/:address", function(req, res) { //res.locals.result = {}; - const { spawn } = require("child_process"); - //const ls = spawn("/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf", [" \'{\"addresses\": [\"" + address + "\"]}\'"]); + const ls = spawn("/usr/local/bin/vivo-cli", [" -conf=/etc/masternodes/vivo_n1.conf \'{\"addresses\": [\"" + address + "\"]}\'"]); - const ls = spawn("pwd", ""); + //const ls = spawn("ls", "-lah"); ls.stdout.on("data", data => { console.log(`stdout: ${data}`);