Function Rose::StringUtility::popen_wrapper#
Defined in File FileUtility.h
Function Documentation#
-
bool Rose::StringUtility::popen_wrapper(const std::string &command, std::vector<std::string> &result)#
Simple wrapper for Unix popen command.
If there is a failure (cannot create pipes, command not found, command terminated abnormally, input buffer too small, etc), then an error is printed to standard error (with or without line termination) and false is returned. When an error occurs the pipes that were opened to communicate with the subcommand might not be closed.