xref: /titanic_50/usr/src/man/man1m/strclean.1m (revision 3d729aecc03ea6ebb9bd5d56b8dccd24f57daa41)
te
Copyright 1989 AT&T Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
STRCLEAN 1M "Sep 14, 1992"
NAME
strclean - STREAMS error logger cleanup program
SYNOPSIS

strclean [-a age] [-d logdir]
DESCRIPTION

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.

OPTIONS

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.

EXAMPLES

Example 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
FILES

/var/adm/streams/error.*

SEE ALSO

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

NOTES

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