2 .\" Copyright 1989 AT&T Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH STRCLEAN 1M "Sep 14, 1992"
8 strclean \- STREAMS error logger cleanup program
12 \fBstrclean\fR [\fB-a\fR \fIage\fR] [\fB-d\fR \fIlogdir\fR]
18 \fBstrclean\fR is used to clean up the STREAMS error logger directory on a
19 regular basis (for example, by using \fBcron\fR. By default, all files with
20 names matching \fBerror.*\fR in \fB/var/adm/streams\fR that have not been
21 modified in the last three days are removed.
25 The following options are supported:
29 \fB\fB-a\fR \fIage\fR\fR
32 The maximum age in days for a log file can be changed using the \fB-a\fR
39 \fB\fB-d\fR \fIlogdir\fR\fR
42 A directory other than \fB/var/adm/streams\fR can be specified using the
48 \fBExample 1 \fRA sample of using the \fBstrclean\fR command.
51 This example has the same result as running \fBstrclean\fR with no arguments:
56 example% \fBstrclean \fR\fB-d\fR\fB /var/adm/streams \fR\fB-a\fR\fB 3\fR
64 \fB/var/adm/streams/error.\fR*
68 \fBcron\fR(1M), \fBstrerr\fR(1M), \fBattributes\fR(5)
75 \fBstrclean\fR is typically run from \fBcron\fR on a daily or weekly basis.