Bitcoin Core 28.99.0
P2P Digital Currency
Functions
run_command.cpp File Reference
#include <bitcoin-build-config.h>
#include <common/run_command.h>
#include <tinyformat.h>
#include <univalue.h>
#include <util/subprocess.h>
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 16 of file run_command.cpp.

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