Skip to content

Commit

Permalink
examples:: short macro for testing GRID connection from ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansev committed Mar 14, 2024
1 parent 3ca1dea commit 46fabb7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/test_grid_conn.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//usr/bin/env -S root.exe -b -q -l -e ".x ${0}" ; exit $?
{
int loaded = gSystem->Load("libJAliEnROOT");
TGrid* alien = TGrid::Connect("alien://");
TString cmd_str ("pwd");
TGridResult* cmd_result = gGrid->Command(cmd_str.Data());
TString result_str = cmd_result->GetKey(0,cmd_str.Data());
cout << result_str << endl;
return 0;
}

0 comments on commit 46fabb7

Please sign in to comment.