OutputWatch


Object Hierarchy:

Object hierarchy for OutputWatch

Description:

public class OutputWatch : BaseTrigger

An OutputWatch 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=OutputWatch
cmd=mpc idleloop player
fire_regex=.*player$
action=MainBranch

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


Namespace: IfThenElse
Package: ifthenelse

Content:

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