BSD家族大观 --1. FreeBSD(1) Swatch - simple watcher ◎安装 更新相关档案(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[ampm] or -r [+]hh:mm[ampm] 在特定的时间之後重新启动,hh代表小时,mm代表分钟。 若am/pm被省略,则使用24小时制。 若时间前加有"+"这个符号,则代表从新启动时间为, 从目前时间再加上特定时间,此时am/pm会被忽略。. --script-dir=/path/to/directory 这个参数将产生的暂存script档案存放到特定的资料夹, 而不是使用者的家目录之下。 强烈建议,您不要使用别的使用者也有权限写入的资料夹,