]> git.saurik.com Git - apple/system_cmds.git/blob - sadc.tproj/sa1.sh
system_cmds-279.tar.gz
[apple/system_cmds.git] / sadc.tproj / sa1.sh
1 #!/bin/sh
2 # /usr/lib/sa/sa1.sh
3 # Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
4 #
5 # @APPLE_LICENSE_HEADER_START@
6 #
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
13 # this file.
14 #
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
21 # under the License."
22 #
23 # @APPLE_LICENSE_HEADER_END@
24 #
25 umask 0022
26 DATE=`/bin/date +%d`
27 ENDIR=/usr/lib/sa
28 DFILE=/var/log/sa/sa${DATE}
29 cd ${ENDIR}
30 if [ $# = 0 ]
31 then
32 exec ${ENDIR}/sadc 1 1 ${DFILE}
33 else
34 exec ${ENDIR}/sadc $* ${DFILE}
35 fi