On 11/08/2013 10:15 PM, Ganji, Shashirekha Yadav wrote: > Risto, > > Thanks for your reply.I also would like to know how will be be able to pass > input arguments to a perl file. > > Swatch example: > exec "/opt/util/an.pl AlarmNotifierTest $& $*" > > Can you help me decode this to SEC syntax.
Use the SEC 'shellcmd' action which provides the same functionality. BR, risto > Thanks, > shashi > > -----Original Message----- > From: Risto Vaarandi [mailto:risto.vaara...@seb.ee] > Sent: Friday, November 08, 2013 1:27 AM > To: simple-evcorr-users@lists.sourceforge.net > Subject: Re: [Simple-evcorr-users] Monitoring a log for a string and > executing a command > > 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.c >> lktrk >> >> >> >> _______________________________________________ >> 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 > > ------------------------------------------------------------------------------ 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