ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
21#include <string>
22
23namespace 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
static Double_t rc
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
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
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
This module defines a variety of assert style macros.
Definition Assert.cxx:26