On 12/01/2010 03:55 PM, M Haris Farooque wrote: > dear all, > > I have a very lame question to ask. > > how to send data to SEC from command line. The SEC is running as daemon. > I am using a FIFO (Pipe) from SEC to write some data instantly as log > data through pipe and its working fine but I like to use the same pipe > to give an input back to SEC. Following rule works fine when I supply > the input from SEC console but I like to supply 'ReportNow' input from > another window. > > FIFO: /usr/local/etc/SEC_Log_Pipe > > > Rule: > type=Single > ptype=substr > pattern=*ReportNow* > desc=$0 > action=eval %o ( open(HND, "> /tmp/contexts.dump"); \ > while($context = each(%main::context_list)) { \ > print HND "Context name: $context\n"; \ > } \ > close(HND);); \ > report %o /bin/cat > > > I tried these but none works; > > 1. cat > /usr/local/etc/SEC_Log_Pipe > ReportNow ctrl+d > > 2. echo "ReportNow" > /usr/local/etc/SEC_Log_Pipe > > do I have to define a special rule to handle Pipe inputs?
No, there is no need for a special rule -- the nature of the input source does not influence the rule type in any way. A quick question -- have you specified -input=/usr/local/etc/SEC_Log_Pipe as a SEC command line option? If yes, send the USR1 signal to SEC which creates the /tmp/sec.dump file. This file also contains the list of known input sources and their status (open or closed, and the number of observed lines). Does these data indicate that SEC is seeing the strings you are writing to pipe? kind regards, risto > > Thanks and Regards > -- > > Kind Reagrds/Mit freundlichen Grüßen > > M Haris Farooque > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App& Earn a Chance To Win $500! > Tap into the largest installed PC base& get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > > > > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users