inline string run_cmd(string cmd){
string data;
FILE * stream;
const int max_buffer = 512;
char buffer[max_buffer];
stream = popen(cmd.c_str(), "r");
if (stream){
while (!feof(stream))
if (fgets(buffer, max_buffer, stream) != NULL) data.append(buffer);
pclose(stream);
}
return data;
}
CREATE QUERY test() FOR GRAPH Mockup {
PRINT run_cmd(“azcopy login --identity”);
}