I'm trying to run a script with the event filter. I only need the event id. When I use %EI% it gives the event id but also the path to the event.
How can I just get the event id without the path? Thanks.
Event Filter only %EI% ?
Re: Event Filter only %EI% ?
Yeah the path thing is a 1.36 thing... in 1.37 it won't do that.
You could alter your zmfilter.pl to behave like 1.37
line 1062:
my $command = $filter->{AutoExecuteCmd}.' '.$event_path;
$command = substituteTags($command, $filter, $Event);
Make it look like:
my $command = $filter->{AutoExecuteCmd};
if ($command =~ /%\w+%/) {
$command = substituteTags($command, $filter, $Event);
} else {
$command .= ' '.$Event->Path();
}
You could alter your zmfilter.pl to behave like 1.37
line 1062:
my $command = $filter->{AutoExecuteCmd}.' '.$event_path;
$command = substituteTags($command, $filter, $Event);
Make it look like:
my $command = $filter->{AutoExecuteCmd};
if ($command =~ /%\w+%/) {
$command = substituteTags($command, $filter, $Event);
} else {
$command .= ' '.$Event->Path();
}