Bitcoin Core  27.99.0
P2P Digital Currency
Functions
run_command.cpp File Reference
#include <common/run_command.h>
#include <tinyformat.h>
#include <univalue.h>
#include <util/subprocess.hpp>
Include dependency graph for run_command.cpp:

Go to the source code of this file.

Functions

UniValue RunCommandParseJSON (const std::string &str_command, const std::string &str_std_in)
 Execute a command which returns JSON, and parse the result. More...
 

Function Documentation

◆ RunCommandParseJSON()

UniValue RunCommandParseJSON ( const std::string &  str_command,
const std::string &  str_std_in = "" 
)

Execute a command which returns JSON, and parse the result.

Parameters
str_commandThe command to execute, including any arguments
str_std_instring to pass to stdin
Returns
parsed JSON

Definition at line 18 of file run_command.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: