18 if (
char *
p = std::getenv(
"CMS_STORM_LCG_GT_TIMEOUT"))
26 LogDebug(
"StormLCGStorageMaker") <<
"command: " << comm << std::endl;
28 FILE *
pipe = popen(comm.c_str(),
"r");
30 throw cms::Exception(
"StormLCGStorageMaker") <<
"failed to execute lcg-gt command: " << comm;
35 while ((ch = getc(
pipe)) != EOF)
39 LogDebug(
"StormLCGStorageMaker") <<
"output: " <<
output << std::endl;
43 if (
start == std::string::npos)
44 throw cms::Exception(
"StormLCGStorageMaker") <<
"no turl found in command '" << comm <<
"' output:\n" <<
output;
48 LogDebug(
"StormLCGStorageMaker") <<
"file to open: " << turl << std::endl;
std::string getTURL(const std::string &surl) const
bool check(const std::string &, const std::string &path, const AuxSettings &, IOOffset *size=nullptr) const override
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::unique_ptr< Storage > open(const std::string &proto, const std::string &surl, int mode, const AuxSettings &) const override
static const StorageFactory * get(void)