]>
git.saurik.com Git - apple/system_cmds.git/blob - sadc.tproj/sa2.sh
8bb9bbd6250d49c7f480ee26c29e8c997c181cd5
3 # Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
5 # @APPLE_LICENSE_HEADER_START@
7 # "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
8 # Reserved. This file contains Original Code and/or Modifications of
9 # Original Code as defined in and that are subject to the Apple Public
10 # Source License Version 1.0 (the 'License'). You may not use this file
11 # except in compliance with the License. Please obtain a copy of the
12 # License at http://www.apple.com/publicsource and read it before using
15 # The Original Code and all software distributed under the License are
16 # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
20 # License for the specific language governing rights and limitations
23 # @APPLE_LICENSE_HEADER_END@
27 RPT
=/var
/log
/sa
/sar
${DATE}
29 DFILE
=/var
/log
/sa
/sa
${DATE}
30 [ -f "$DFILE" ] || exit 0
32 ${ENDIR}/sar $
* -f ${DFILE} > ${RPT}
33 /usr
/bin
/find /var
/log
/sa \
( -name 'sar??' -o -name 'sa??' \
) -mtime +7 -exec /bin
/rm -f {} \
;