Ad Widget

Collapse

Trigger help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trikke
    Senior Member
    • Aug 2007
    • 140

    #1

    Trigger help

    Hi There,

    I have following Trigger:

    {Basler_Template_Windows:system.run[wmic /output:wmic.out service where "Startmode='Auto' and state!='Running'" get DisplayName /Format:csv | type wmic.out].str(DisplayName)}=1 & {Basler_Template_Windows:system.run[wmic /output:wmic.out service where "Startmode='Auto' and state!='Running'" get DisplayName /Format:csv | type wmic.out].diff()}=1

    As far as I understand this trigger SHOULD be TRUE (and create an Event) as soon as the output of the Item contains the String "DisplayName" and the last output differs from the previous output.

    What I see is that the trigger becomes TRUE only when the previous state was FALSE. Is this ment to be???

    I want to achieve that every time the ouptput of the Item changes/differs (in case of at least the string DisplayName occures), a event is generated ( and a action can be triggered ).

    Any ideas??
Working...