手册页部分 1M: 系统管理命令

退出打印视图

更新时间: 2014 年 7 月
 
 

strclean(1M)

名称

strclean - STREAMS error logger cleanup program

用法概要

strclean [-a age] [-d logdir]

描述

strclean is used to clean up the STREAMS error logger directory on a regular basis (for example, by using cron. By default, all files with names matching error.* in /var/adm/streams that have not been modified in the last three days are removed.

选项

The following options are supported:

–a age

The maximum age in days for a log file can be changed using the –a option.

–d logdir

A directory other than /var/adm/streams can be specified using the –d option.

示例

示例 1 A sample of using the strclean command.

This example has the same result as running strclean with no arguments:

example%  strclean –d /var/adm/streams –a 3

文件

/var/adm/streams/error.*

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

另请参见

cron(1M), strerr(1M), attributes(5)

STREAMS Programming Guide

附注

strclean is typically run from cron on a daily or weekly basis.