Files
MaxScale/maxscale-system-test/execute_cmd.h
Niclas Antti c447e5cf15 Uncrustify maxscale
See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
2018-09-09 22:26:19 +03:00

18 lines
365 B
C++

#ifndef EXECUTE_CMD_H
#define EXECUTE_CMD_H
#include <iostream>
#include <unistd.h>
using namespace std;
/**
* @brief execute_cmd Execute shell command
* @param cmd Command line
* @param res Pointer to variable that will contain command console output (stdout)
* @return Process exit code
*/
int execute_cmd(char* cmd, char** res);
#endif // EXECUTE_CMD_H