-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
When event is detected it is convinient to run some script, like automatic uploader.
Here is example I use in my local build of freeture.
// ***************************** starting user script *****************************
if(boost::filesystem::exists(mdtp.DET_EVENT_USER_ACTION) ){
string commandString = mdtp.DET_EVENT_USER_ACTION + " " + mEventPath;
BOOST_LOG_SEV(logger,notification) << "Executing user command : " << commandString;
std::thread ut(this,commandString{ system(commandString.c_str()); });
ut.detach();
}
Reactions are currently unavailable