Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2000 11:35:46 -0700 (MST)
From:      "Chad R. Larson" <chad@DCFinc.com>
To:        kris@hiway.net
Cc:        stable@FreeBSD.org
Subject:   Re: Process accounting and logging: What turns the files over?
Message-ID:  <200004251835.LAA26960@freeway.dcfinc.com>
In-Reply-To: <200004251821.LAA26855@freeway.dcfinc.com> from "Chad R. Larson" at "Apr 25, 0 11:19:37 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As I recall, Chad R. Larson wrote:
> 
> Check "man 8 sa".
> 

Sorry, I should have added that my /etc/daily contains:


    if [ -f /var/account/acct ] ; then
	    echo ""
	    echo "Gathering accounting statistics:"
	    cd /var/account
	    if [ -f acct.2 ] ; then mv -f acct.2 acct.3 ; fi
	    if [ -f acct.1 ] ; then mv -f acct.1 acct.2 ; fi
	    if [ -f acct.0 ] ; then mv -f acct.0 acct.1 ; fi
	    cp -pf acct acct.0
	    sa -s > /dev/null
    fi


	-crl
--
Chad R. Larson (CRL15)   602-953-1392   Brother, can you paradigm?
chad@dcfinc.com         chad@larsons.org          larson1@home.net   
DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004251835.LAA26960>