API

Run a command get the output. More...

#include "runCommand.hpp"
#include <cstring>
#include <sstream>
#include <unistd.h>
#include <sys/wait.h>
#include <iostream>
Include dependency graph for runCommand.cpp:

Go to the source code of this file.

Namespaces

 MagAOX
 
 MagAOX::sys
 

Functions

int MagAOX::sys::runCommand (std::vector< std::string > &commandOutput, std::vector< std::string > &commandStderr, std::vector< std::string > &commandList)
 Runs a command (with parameters) passed in using fork/exec. More...
 

Detailed Description

Run a command get the output.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file runCommand.cpp.