Annotation of 43BSDReno/etc/monthly, revision 1.1

1.1     ! root        1: #!/bin/sh -
        !             2: #
        !             3: #      @(#)monthly     5.3 (Berkeley) 9/6/89
        !             4: #
        !             5: 
        !             6: host=`hostname -s`
        !             7: echo "Subject: $host monthly run output"
        !             8: 
        !             9: # echo ""
        !            10: # echo "Doing login accounting:"
        !            11: # ac -p | sort -nr +1
        !            12: 
        !            13: echo ""
        !            14: echo "Rotating wtmp files:"
        !            15: cd /var/log
        !            16: if [ -f wtmp.5 ]; then mv -f wtmp.5 wtmp.6; fi
        !            17: if [ -f wtmp.4 ]; then mv -f wtmp.4 wtmp.5; fi
        !            18: if [ -f wtmp.3 ]; then mv -f wtmp.3 wtmp.4; fi
        !            19: if [ -f wtmp.2 ]; then mv -f wtmp.2 wtmp.3; fi
        !            20: if [ -f wtmp.1 ]; then mv -f wtmp.1 wtmp.2; fi
        !            21: if [ -f wtmp.0 ]; then mv -f wtmp.0 wtmp.1; fi
        !            22: mv -f wtmp   wtmp.0
        !            23: cp /dev/null wtmp

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.