// ssystem.h #ifndef ssystem_H #define ssystem_H #include "dataset_util/PThreadMutex.h" // Like POSIX system except // 1. Argument is a C++ string. // 2. Return is command return status for normal return. // Negative for error or abnormal (e.g. kill or other signal) exit. // 3. Protected with ssystem_mutex(). // 4. Option to pass or not pass environment. #include // Function. int ssystem(std::string com, bool passenv =true); // Mutex. PThreadMutex& ssystem_mutex(); #endif