Hi Guys, I have a perl program who uses Search:Elasticsearch to do a query
based on input variables.

The two input variables are given in a Single rule, When I use 'spawn'
action to execute this script:

#check if stats requirements are met, 1 sigma is used.
type=Single
ptype=RegExp
pattern=\"reading(\d+)\"\s+=>\s+([-+]?\d*\.?\d+)
desc=CAPTURE_READING_$1
action=write - reading$1 of %id $2;\
  spawn /usr/bin/perl /home/yuheng/Downloads/SEC/sec-2.7.5/calMean.pl "%id"
"$2"

 it gives me an error:

[NoNodes] ** No nodes are available: [localhost:9200], called from sub
Search::Elasticsearch::Transport::__ANON__ at
/usr/local/share/perl/5.14.2/Try/Tiny.pm
line 81.Child 3215 terminated with non-zero exitcode 255 ( /usr/bin/perl
/home/yuheng/Downloads/SEC/sec-2.7.5/calMean.pl "aiken_7" "0.0" )


But if I do a SingleWithScript like this:
#check if stats requirements are met, 1 sigma is used.
type=SingleWithScript
ptype=RegExp
pattern=\"reading(\d+)\"\s+=>\s+([-+]?\d*\.?\d+)
desc=CAPTURE_READING_$1
script=/usr/bin/perl /home/yuheng/Downloads/SEC/sec-2.7.5/calMean.pl "%id"
"$2"
action=write - reading$1 of %id $2;\

It compiles, but the second argument ""%id", which is an action variable
from another rule, could not be passed to the perl script correctly.

Can anyone help?

Thanks,

Yuheng
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to