"Alexander A. Karpoff" wrote:
> 
> On 03-Feb-00 Alexander Tumko wrote:
> >
> >> chown oops /usr/local/oops/logs/access.log
> 
> ��, ����� � �� ��� ������� ���� �������� ��������.

C��� ����� :)

> � ���� oops ����������� �� ������ �����. ���� � ���� ������ - �� ������.
> 
> > ��, �������, ��������.
> 
> ���. � ��� ������ ������ � log.1, log.2 etc?..

���, ����� ������ ������.. :(

#!/bin/sh
MAX=5
LOG="access.log."

export PATH=/bin:/usr/bin

i=$MAX
if [ -f $LOG$i ] ; then
        rm $LOG$i
fi

while [ $i -ge 0 ]; do
        if [ -f $LOG$i ] ; then
                mv $LOG$i $LOG`expr $i + 1`
        fi
        i=`expr $i - 1`
done

... (��, ��� � ����� �������)


:))
=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops" in message body.
Archive is accessible on http://www.paco.net/oops/

Дати відповідь електронним листом