MCPcopy Create free account
hub / github.com/alibaba/GraphScope / exec

Function exec

analytical_engine/core/java/javasdk.cc:475–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473 return env->NewGlobalRef(res);
474}
475std::string exec(const char* cmd) {
476 std::array<char, 128> buffer;
477 std::string result;
478 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
479 if (!pipe) {
480 throw std::runtime_error("popen() failed!");
481 }
482 while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) {
483 result += buffer.data();
484 }
485 return result;
486}
487
488std::string generate_jvm_opts() {
489 char* gs_home = getenv("GRAPHSCOPE_HOME");

Callers 3

generate_jvm_optsFunction · 0.85
run_appFunction · 0.85
do_POSTMethod · 0.85

Calls 3

dataMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65

Tested by 1

do_POSTMethod · 0.68