22#include "Utility/IpplInfo.h"
28 "The \"SYSTEM\" statement sends a command string to the "
29 "operating system.") {
42 if (ippl::Comm->rank() == 0) {
45 int res = system(command.c_str());
46 if (res != 0) *ippl::Error <<
"SYSTEM call failed" << endl;
The base class for all OPAL actions.
virtual void parseShortcut(Statement &, bool eval=true)
Parser for single-attribute commands.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
std::vector< Attribute > itsAttr
The object attributes.
Interface for statements.
virtual System * clone(const std::string &name)
Make clone.
virtual void execute()
Execute the command.
virtual void parse(Statement &)
Parse command (special for one-attribute command).
System()
Exemplar constructor.
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.