LJ Archive

Table 1. Some Actions swatch Can Take

Action (Keyword)                  Description
-----------------------------------------------------------------------------------
echo=normal, underscore,      Print matched line to console, with or
blue, inverse, etc.           without special text mode (default mode
                                     is normal.
-----------------------------------------------------------------------------------
bell N                         Echo the line to console, with "beep"
                                      sounded N times (default=1).
-----------------------------------------------------------------------------------
exec command                    Execute the command or script
                                      command.
-----------------------------------------------------------------------------------
pipe command                    Pipe the line to the command
                                       command.
-----------------------------------------------------------------------------------
throttle command               Wait for HH:MM:SS after a line
                                      triggers a match, before performing actions
                                      on another matich of the same expression.
                                      Helps prevent denial-of-service attacks
                                      via swatch (e.g., deliberately triggering
                                      huge numbers of swatch events in a short
                                      period).

LJ Archive