1997-05-03 00:22:09 +00:00
|
|
|
SWATCH - The Simple WATCHer and filter
|
|
|
|
|
1997-05-03 06:37:38 +00:00
|
|
|
Swatch is designed to monitor system activity. Swatch
|
|
|
|
requires a configuration file which contains pattern(s) to
|
|
|
|
look for and action(s) to do when each pattern is found.
|
1997-05-03 00:22:09 +00:00
|
|
|
|
1997-05-03 06:37:38 +00:00
|
|
|
The file contains four TAB separated fields:
|
1997-05-03 00:22:09 +00:00
|
|
|
|
1997-05-03 06:37:38 +00:00
|
|
|
/pattern/[,/pattern/,...] action[,action,...] [[HH:]MM:]SS start:length
|
1997-05-03 00:22:09 +00:00
|
|
|
|
1997-05-03 06:37:38 +00:00
|
|
|
A pattern must be a regular expression which perl(1) will
|
|
|
|
accept, which is very similar to the regular expressions
|
|
|
|
which egrep(1) accepts.
|
1997-05-03 00:22:09 +00:00
|
|
|
|
1997-05-03 06:37:38 +00:00
|
|
|
The following actions are acceptable:
|
1997-05-03 00:22:09 +00:00
|
|
|
|
1997-05-03 06:37:38 +00:00
|
|
|
echo[=mode]
|
|
|
|
bell[=N]
|
|
|
|
exec=command
|
|
|
|
ignore
|
|
|
|
mail[=address:address:...]
|
|
|
|
pipe=command
|
|
|
|
write[=user:user:...]
|