MultiOutputWatch


Object Hierarchy:

Object hierarchy for MultiOutputWatch

Description:

public class MultiOutputWatch : BaseTrigger

An MultiOutputWatch trigger: Watches the output off a program and triggers when a certain condition is met.

This trigger fires when a program outputs a certain string.

The timer trigger supports being started and stopped and can be placed anywhere in the chain.

Example

So if you want a certain branch (MainBranch) to fire when mpc idle return player.

Add an element like:

[MpcIdleWatch]
type=MultiOutputWatch
cmd=mpc idleloop player
fire_regex=regex1;regex2;regex3
action=action1;action2;action3

To fire when a tool returns, e.g. inotifywatch use ExternalToolTrigger


Namespace: IfThenElse
Package: ifthenelse

Content:

Constants:

Properties:

Creation methods:

Methods:

Fields:

Inherited Members:

All known members inherited from class IfThenElse.BaseTrigger
 
All known members inherited from class IfThenElse.Base
 
All known members inherited from class GLib.Object
 
All known members inherited from interface IfThenElse.BaseAction