Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
dcn::native Namespace Reference

Functions

std::pair< int, std::string > runProcess (const std::string &command, std::vector< std::string > args={})
 

Function Documentation

◆ runProcess()

std::pair< int, std::string > dcn::native::runProcess ( const std::string &  command,
std::vector< std::string >  args = {} 
)

Spawns a new process with the given command. The command must be a valid shell command.

Parameters
commandThe command to execute in the new process
argsThe arguments to pass to the command