Pārlūkot izejas kodu

05/25/2021 02:54:46 PM MST

master
coldstar pirms 3 gadiem
vecāks
revīzija
50729694ba
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. +2
    -3
      routes/baseActionsRouter.js

+ 2
- 3
routes/baseActionsRouter.js Parādīt failu

@@ -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}`);


Notiek ielāde…
Atcelt
Saglabāt