◎安装
更新相关档案(cvsup)
/usr/ports/security/swatch # make install
/usr/ports/security/swatch # make clean
◎语法
swatch
[ --config-file file ] [ --restart-time time ]
[--input-record-separator regex ]
[ [ --examine file_to_examine ] | [ --read-pipe program_to_pipe_from ] | [ --tail file_to_tail ] ]
[ --daemon ]
◎swatch叙述:
Swatch是被设计用来监视系统动作的程式。
为了要让Swatch能够更加的强大,他需要一个用以比对的设定档。
◎命令列的参数:
--config-file=filename or -c filename
此参数告诉swatch到哪里去寻找他的设定档案。
预设值是放在${HOME}/.swatchrc 。
--help
显示使用说明。
--input-record-separator=regular_expression
此参数告诉swatch使用规则表示式来描绘每笔记录的边界。
预设值是return。
--restart-time=[+]hh:mm[am|pm] or -r [+]hh:mm[am|pm]
在特定的时间之後重新启动,hh代表小时,mm代表分钟。
若am/pm被省略,则使用24小时制。
若时间前加有"+"这个符号,则代表从新启动时间为,
从目前时间再加上特定时间,此时am/pm会被忽略。.
--script-dir=/path/to/directory
这个参数将产生的暂存script档案存放到特定的资料夹,
而不是使用者的家目录之下。
强烈建议,您不要使用别的使用者也有权限写入的资料夹,
举例来说/tmp。
--version or -V
显示版本资讯。
以下的参数,不能并存,只能选择其一执行。
--tail-file=filename or -t filename
当他们被附加到某一档案时,以行为单位检视文字档案。
--read-pipe=command or -p command
从命令检视输入。
--examine=filename or -f filename
将filename视为检视档案来检视。swatch将会进行一个个别检视经由这个档案。
以下的参数纯粹用於除错过程,但是为了完整性仍将其列出。
--dump-script[=filename]
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 监控 参数 swatch 执行 设定 显示 这个 符合 档案 使用 |
注册
个人空间
