home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / cmds / root.3 / usr / lib / sa / sa2 / sa2~
Text File  |  1998-08-19  |  822b  |  23 lines

  1. #!/sbin/sh
  2.  
  3. # Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  4. #                                                                         
  5. #        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  6. #                   SANTA CRUZ OPERATION INC.                             
  7. #                                                                         
  8. #   The copyright notice above does not evidence any actual or intended   
  9. #   publication of such source code.                                      
  10.  
  11. #    copyright    "%c%"
  12.  
  13. #ident    "@(#)sa:common/cmd/sa/sa2.sh    1.4.1.3"
  14. #ident "$Header: $"
  15.  
  16. DATE=`date +%d`
  17. RPT=/var/adm/sa/sar$DATE
  18. DFILE=/var/adm/sa/sa$DATE
  19. ENDIR=/usr/bin
  20. cd $ENDIR
  21. $ENDIR/sar $* -f $DFILE > $RPT
  22. find /var/adm/sa \( -name 'sar*' -o -name 'sa*' \) -mtime +7 -exec rm {} \;
  23.