Based on yesterday's discussion in the mailing list, I've also updated the SEC FAQ (Q8: How can I convert Swatch thresholding rules into SEC rules?): http://simple-evcorr.sourceforge.net/FAQ.html#8
kind regards, risto On 11/07/2013 09:56 AM, GrillMaster wrote: > Hi, > > I’m a little confused on how I set up rules to monitor a log file for > various strings and execute a different command for each string. I am > basically trying to convert a swatch config into sec. Here is an > example of the swatch file: > > watchfor /test/ > > exec "screen -S s1 -p 0 -X stuff "Text injected into a screen > session"`echo -ne '\015'`" > > threshold type=limit,count=1,seconds=3 > > watchfor /test2/ > > exec "screen -S s1 -p 0 -X stuff “Different text injected into > the same screen session"`echo -ne '\015'`" > > threshold type=limit,count=1,seconds=3 > > watchfor /test3/ > > exec "screen -S s1 -p 0 -X stuff “Unique text injected into the > same screen session"`echo -ne '\015'`" > > threshold type=limit,count=1,seconds=3 > > -grillmaster > > > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users > ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users