Annotation of coherent/a/usr/lib/uucp/uumvlog, revision 1.1

1.1     ! root        1: : /usr/lib/uucp/uumvlog 6/05/91
        !             2: : Usage: uumvlog days_to_keep
        !             3: : ${1?Please use uumvlog days_to_keep}
        !             4: tmp=/tmp/uulogclean.tmp
        !             5: date >$tmp
        !             6: echo Moving old uucp log files >>$tmp
        !             7: for dir in uucico uux uuxqt uucp; do
        !             8:        for site in `uuname` `echo $dir | tr a-z A-Z`; do
        !             9:                file=/usr/spool/uucp/.Log/$dir/$site
        !            10:                if [ $1 -ge 2 ] ; then
        !            11:                        for days in `from $1 to 2 by -1`; do
        !            12:                                new=`expr $days - 1`
        !            13:                                if [ -f $file.$new ] ; then
        !            14:                                        echo moving $file.$new to $file.$days >>$tmp
        !            15:                                        mv $file.$new $file.$days >>$tmp 2>&1
        !            16:                                fi
        !            17:                        done
        !            18:                fi
        !            19:                if [ -f $file ] ; then
        !            20:                        echo moving $file to $file.1 >>$tmp
        !            21:                        mv $file $file.1 >>$tmp 2>&1
        !            22:                        >$file
        !            23:                fi
        !            24:        done
        !            25: done
        !            26: cat $tmp
        !            27: rm $tmp
        !            28: exit 0

unix.superglobalmegacorp.com

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