Library for executing bash commands with captured output.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exec/test/test.cpp

15 lines
166 B

#include <iostream>
#include "../lib/exec.hpp"
using namespace std;
int main() {
string out = exec("ls -lha");
cout << out << endl;
return 0;
}