ATLAS Offline Software
ShellExec.h
Go to the documentation of this file.
1 #ifndef ROOT_CORE_UTILS__SHELL_EXEC_H
2 #define ROOT_CORE_UTILS__SHELL_EXEC_H
3 
4 //
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 
9 // Please feel free to contact me (krumnack@iastate.edu) for bug
10 // reports, feature suggestions, praise and complaints.
11 
12 
13 // This module still needs to be documented. The interface provided
14 // in this module is intended for experts only. The module is
15 // considered to be in the pre-alpha stage.
16 
17 
18 
19 #include <RootCoreUtils/Global.h>
20 
21 #include <string>
22 
23 namespace RCU
24 {
25  namespace Shell
26  {
32  void exec (const std::string& cmd);
33 
34 
41  std::string exec_read (const std::string& cmd);
42 
43 
50  std::string exec_read (const std::string& cmd, int& rc);
51 
52 
57  std::string quote (const std::string& name);
58  }
59 }
60 
61 #endif
rerun_display.cmd
string cmd
Definition: rerun_display.py:67
Global.h
RCU
This module defines a variety of assert style macros.
Definition: Assert.cxx:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
RCU::Shell::exec_read
std::string exec_read(const std::string &cmd)
effects: execute the given command and return the output returns: the output of the command guarantee...
Definition: ShellExec.cxx:37
RCU::Shell::exec
void exec(const std::string &cmd)
effects: execute the given command guarantee: strong failures: out of memory II failures: system fail...
Definition: ShellExec.cxx:29
RCU::Shell::quote
std::string quote(const std::string &name)
effects: quote the given name to protect it from the shell returns: the quoted name guarantee: strong...
Definition: ShellExec.cxx:75