CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
RemoteFile.cc File Reference
#include "Utilities/StorageFactory/interface/RemoteFile.h"
#include "Utilities/StorageFactory/src/Throw.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <sys/wait.h>
#include <sys/types.h>
#include <cerrno>
#include <cassert>
#include <spawn.h>
#include <unistd.h>
#include <ostream>
#include <cstring>

Go to the source code of this file.

Functions

static std::string join (char **cmd)
 

Function Documentation

static std::string join ( char **  cmd)
static

Definition at line 18 of file RemoteFile.cc.

References AlCaHLTBitMon_ParallelJobs::p, query::result, findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by DOTExport.DotProducer::__call__(), argparse._SubParsersAction::__call__(), python.rootplot.argparse._SubParsersAction::__call__(), dataset.Dataset::__createSnippet(), Mixins._TypedParameterizable::__findDefaultsFor(), dirstructure.Directory::__get_full_path(), alignment.Alignment::__getConditions(), Mixins._ValidatingListBase::__init__(), DictTypes.SortedKeysDict::__repr__(), python.XML2Python.DataNode::__repr__(), XML2Python.DataNode::__repr__(), argparse._AttributeHolder::__repr__(), python.rootplot.argparse._AttributeHolder::__repr__(), argparse.FileType::__repr__(), python.rootplot.argparse.FileType::__repr__(), svgfig.SVG::__standalone_xml(), psClasses.BuildTreeNodeList::__str__(), BeautifulSoup.Tag::__str__(), argparse.ArgumentParser::_check_value(), python.rootplot.argparse.ArgumentParser::_check_value(), Vispa.Main.Application.Application::_collectFileExtensions(), cfg-viewer.unscheduled::_createObjects(), BeautifulSoup.UnicodeDammit::_ebcdic_to_ascii(), cmsPerfSuiteHarvest::_eventContent_DEBUG(), argparse.HelpFormatter::_expand_help(), python.rootplot.argparse.HelpFormatter::_expand_help(), argparse.RawDescriptionHelpFormatter::_fill_text(), python.rootplot.argparse.RawDescriptionHelpFormatter::_fill_text(), argparse.HelpFormatter::_format_action_invocation(), python.rootplot.argparse.HelpFormatter::_format_action_invocation(), argparse.HelpFormatter::_format_actions_usage(), python.rootplot.argparse.HelpFormatter::_format_actions_usage(), argparse.HelpFormatter::_format_args(), python.rootplot.argparse.HelpFormatter::_format_args(), progressbar.ProgressBar::_format_line(), argparse.HelpFormatter::_format_usage(), python.rootplot.argparse.HelpFormatter::_format_usage(), argparse::_get_action_name(), python.rootplot.argparse::_get_action_name(), argparse.ArgumentParser::_get_nargs_pattern(), python.rootplot.argparse.ArgumentParser::_get_nargs_pattern(), cfg-viewer.unscheduled::_getData(), argparse._ActionsContainer::_handle_conflict_error(), python.rootplot.argparse._ActionsContainer::_handle_conflict_error(), cfg-viewer.html::_items(), argparse.HelpFormatter::_join_parts(), python.rootplot.argparse.HelpFormatter::_join_parts(), Vispa.Main.Application.Application::_loadPlugins(), argparse.ArgumentParser::_match_arguments_partial(), python.rootplot.argparse.ArgumentParser::_match_arguments_partial(), argparse.HelpFormatter::_metavar_formatter(), python.rootplot.argparse.HelpFormatter::_metavar_formatter(), argparse.ArgumentParser::_parse_known_args(), python.rootplot.argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), python.rootplot.argparse.ArgumentParser::_parse_optional(), cfg-viewer.unscheduled::_saveData(), cfg-viewer.html::_scripts(), cfg-viewer.html::_searchitems(), Config.Process::_sequencesInDependencyOrder(), python.tagInventory.tagInventory::addEntriesReplaceService(), Reco.Reco::alcaHarvesting(), Impl.AlCa.AlCa::alcaSkim(), Reco.Reco::alcaSkim(), Config.Process::analyzerNames(), ConfigBuilder.ConfigBuilder::anyOf(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), cmsPerfSuiteHarvest::assign_event_content_for_product(), utils_v2::auth_download_file(), dirstructure.Directory::calcStats(), ValidationMatrix_v2::call_compare_using_files(), cmsHarvester::check_input_status(), cmsHarvester::check_ref_hist_tag(), CommonHcalNoiseRBXData::CommonHcalNoiseRBXData(), ValidationMatrix_v2.ReleaseComparison::compare(), cmsHarvester.CMSHarvester::config_file_header(), cmsHarvester::create_es_prefer_snippet(), cmsHarvester::create_me_extraction_config(), web.dbfile2html::create_page(), showPage::createLogFiles(), validateAlignments::createMergeScript(), validateAlignments::createParallelMergeScript(), pickleFileCreater::createPickleFile(), relval_steps.InputInfo::das(), rrapi.RRApi::data(), web.app_utils::db_list_with_releases(), web.dbfile2html::dbfile2html(), makeLayoutFileForGui::defaults(), EnviromentSettings::detectEnviroment(), Utils::dictIO(), python.rootplot.core::diffpart(), directories2html::directory2html(), Skims_cff::documentSkims(), SkimsCosmics_cff::documentSkims(), SkimsHeavyIons_cff::documentSkims(), plotscripts::doTestsForMapPlots(), DOTExport.DotExport::dotIndenter(), Utils::dqmSeq(), Config.Process::dumpConfig(), Mixins._Parameterizable::dumpPython(), Config.Process::dumpPython(), Types.EDAlias::dumpPython(), addOnTests.StandardTester::dumpTest(), lumiReport::dumptocsv(), HTMLExport::elem(), makeLayoutFileForGui::eleRej(), BeautifulSoup.BeautifulStoneSoup::endData(), cmsHarvester.DBSXMLHandler::endElement(), dataDML::fillInRange(), reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), dataDML::fillrunMap(), Config.Process::filterNames(), edmConvertToStreamModule::find_all_module_classes(), golden_json_2012::findFileInPath(), dcsonly_json_2012::findFileInPath(), muon_json_2012::findFileInPath(), argparse.HelpFormatter._Section::format_help(), python.rootplot.argparse.HelpFormatter._Section::format_help(), cmsHarvester.CMSHarvesterHelpFormatter::format_usage(), python.connectstrParser.connectstrParser::fullfrontierStr(), connectstrParser.connectstrParser::fullfrontierStr(), utils::functor(), pkg.AbstractPkg::generate(), RemoteFile::get(), rrapi.RRApi::get(), web.app_utils::get_dataset_name(), web.app_utils::get_directory_summary_stats(), cmsPerfSuiteHarvest::get_modules_sequences_relationships(), python.rootplot.core::get_plotpath(), condformats_serialization_generate::get_serializable_classes_members(), utils_v2::get_size_to_download(), directories2html::get_subdirs_section(), dirstructure.Directory::get_summary_chart_name(), utils_v2::get_version(), python.Lumis::getByLabel(), python.Runs::getByLabel(), python.Events::getByLabel(), LumiList.LumiList::getCMSSWString(), filesFinder::getFilePathsFromWalk(), cmstc.TagCollector::getIBs(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::getObjectContent(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::getObjectLabel(), confdb.HLTProcess::getRawConfigurationFromDB(), trackselectionRefitting::getSequence(), GlobalTag::GlobalTag(), edmPickEvents::guessEmail(), queryDataSource::hltFromOldLumi(), queryDataSource::hltFromRuninfoV2(), ThePEG::HepMCConverter< HepMCEventT, Traits >::init(), crabWrap::initCrabEnvironment(), fileTransfer::injectFile(), confdb::instrumentOpenMode(), python.rootplot.tree2hists::join_cuts(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor::label(), makeLayoutFileForGui::layDefaults(), MatrixToProcess.MatrixToProcess::listAll(), cfg-viewer::listBase(), create_public_lumi_plots::loadCertificationJSON(), python.rootplot.utilities::loadROOT(), dqm_interfaces.DQMcommunicator::ls(), relval_steps.InputInfo::lumiRanges(), cfg-viewer::main(), python.rootplot.tree2hists::make_all_hists_all_files(), python.rootplot.core::make_html_index(), directories2html::make_summary_table(), DOTExport.DotProducer::makePath(), python.rootplot.core::merge_pdf(), autoSkim::mergeMapping(), python.tagInventory.tagInventory::modifyEntriesReplaceService(), EnablePSetHistory::new_dumpHistory(), EnablePSetHistory::new_dumpModifications(), Vispa.Main.Application.Application::openFileDialog(), cmsHarvester.CMSHarvester::option_handler_harvesting_mode(), cmsHarvester.CMSHarvester::option_handler_harvesting_type(), cmsPerfSuite.PerfSuite::optionParse(), cmsDriverOptions::OptionsFromItems(), TreeCrawler::packageNameFromFilename(), argparse.ArgumentParser::parse_args(), python.rootplot.argparse.ArgumentParser::parse_args(), python.rootplot.core::parse_arguments(), parserPerfsuiteMetadata.parserPerfsuiteMetadata::parseGeneralInfo(), Config.Process::pathNames(), plotscripts::phiedges2c(), create_public_lumi_plots::PlotAllYears(), python.rootplot.core::prep_first_draw(), ConfigBuilder.ConfigBuilder::prepare_HLT(), DOTExport.DotExport::processMap(), HTMLExport.HTMLExportStatic::produce(), DOTExport.DotProducer::produceNodes(), Config.Process::producerNames(), Config.Process::prune(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::readConnections(), MatrixReader.MatrixReader::readMatrix(), pickleFileParser::readPicFiles(), lumiPatch::recalibrateLumiForRun(), python.rootplot.rootinfo::recurse_thru_file(), utils_v2::recursive_search_online(), BeautifulSoup.Tag::renderContents(), contrib::CMSBoostedTauSeedingAlgorithm::result(), HEPTopTagger::result(), CMSTopTagger::result(), python.rootplot.core::rootplot(), parseEventContent::rule_to_regexp(), CATopJetAlgorithm::run(), showPage::run(), dqm_interfaces.DirWalkerDB::run(), cmsPerfSuite.PerfSuite::runCmdSet(), cmsCodeRulesChecker::runRules(), MatrixRunner.MatrixRunner::runTests(), Vispa.Main.Application.Application::saveFileAsDialog(), makeLayoutFileForGui::sCone(), dataformats::search(), query::sendMessage(), MatrixReader.MatrixReader::showRaw(), makeLayoutFileForGui::sizeSumpt(), Reco.Reco::skimming(), timingPdfMaker::specificpathinfo(), svgfig.SVG::standalone_xml(), Utils::stepALCAPRODUCER(), Vispa.Main.TabController.TabController::supportedFileFilters(), svgfig.Path::SVG(), main::tmpl_dir(), lumiReport::toCSVLumiByLSXing(), lumiReport::toScreenConfHlt(), lumiReport::toScreenHeader(), lumiReport::toScreenLSBeam(), lumiReport::toScreenLSHlt(), lumiReport::toScreenLSTrg(), lumiReport::toScreenSingleTag(), lumiReport::toScreenTotEffective(), svgfig.SVG::tree(), queryDataSource::trgFromOldLumi(), BeautifulSoup.BeautifulStoneSoup::unknown_starttag(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::uses(), web_templates::usual_validation_dataset_template(), HEPTopTaggerStructure::W(), compare_using_files_v2.RootFileComparison::walk_through(), wordWrappers::wrap_always(), dataformats::wrap_always(), wordWrappers::wrap_onspace_strict(), MCScenario_CRAFT1_22X::write_xml(), cmsRelvalreportInput::writeCommands(), cmsRelvalreportInput::writeUnprofiledSteps(), MCScenario_CRAFT1_22X.Alignable::writeXML(), MCScenario_CRAFT1_22X.Position::writeXML(), MCScenario_CRAFT1_22X.Operation::writeXML(), geometryXMLparser.MuonGeometry::xml(), and svgfig.SVG::xml().

19 {
20  size_t size = 0;
21  for (char **p = cmd; p && p[0]; ++p)
22  size += 1 + strlen(*p);
23 
25  result.reserve (size);
26 
27  for (char **p = cmd; p && p[0]; ++p)
28  {
29  if (p != cmd)
30  result += ' ';
31  result += *p;
32  }
33 
34  return result;
35 }
tuple result
Definition: query.py:137
string cmd
Definition: asciidump.py:19
tuple size
Write out results.