>From address@hidden Thu Sep 19 06:13:18 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJC-00043H-00
for address@hidden; Thu, 19 Sep 2002 06:13:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJ9-00042W-00
for address@hidden; Thu, 19 Sep 2002 06:13:17 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJ7-000429-00
for address@hidden; Thu, 19 Sep 2002 06:13:13 -0400
Received: (qmail 7442 invoked by uid 7808); 19 Sep 2002 10:11:51 -0000
Date: Thu, 19 Sep 2002 12:11:51 +0200
From: address@hidden
To: address@hidden
Message-ID:
Mime-Version: 1.0
Content-Type: text/plain; charset=iso8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
Subject: [Rottlog-develop] parse_period
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
This is a first draft of what will be parse_period function.
It lacks long weekday and monthnames, stamp_file input variable and various
check for all options.
See if it works:
----------------------------- CUT -----------------------------
#!/bin/bash
#period mon-fri !15d 10:00, 23:00
parse_period () {
local today=$(date +%d)
local name_today=$(LANG=en date +%a|tr A-Z a-z)
local name_month=$(LANG=en date +%b|tr A-Z a-z)
local now_hour=$(date "+%H")
local now_min=$(date "+%M")
local last_day_of_month=$(cal -1|tail -2|head -n 1|rev|cut -d' ' -f1|rev)
local exit_t=
OLDIFS="$IFS"
IFS=","
for opt in $1; do
[ -z "$opt" ] && continue
[ -z "$2" ] && criteria= || criteria="$2"
dont_eval=
opt=$(echo $opt|tr -s ' ')
ltoken=0
IFS="$OLDIFS"
if [ "${opt:0:1}" = " " ]; then
opt=${opt:1}
fi
for token in $opt; do
ltoken=$[ ltoken + ${#token} ]
rest=${opt:ltoken}
if [ "${token:0:1}" = '!' ]; then
echo "Operatore NOT"
NOT='!'
token=${token:1}
rest=${opt:ltoken+1}
fi
case $token in
*-*)
echo "Expanding interval"
begin_t=$(echo "$token"|cut -d'-' -f1)
end_t=$(echo "$token"|cut -d'-' -f2)
case $token in
*mon*|*tue*|*wed*|*thu*|*fri*|*sat*|*sun*)
default_begin="mon"
default_end="sun"
list_elem="mon tue wed thu fri sat sun"
;;
*jan*|*feb*|*mar*|*apr*|*may*|*jun*|*jul*|*ago*|*sep*|*oct*|\
*nov*|*dec*)
default_begin="jan"
default_end="dec"
list_elem="jan feb mar apr may jun jul ago sep oct nov dec"
;;
esac
# Se è un intervallo tipo -xxx
if [ -z "$begin_t" ]; then
begin_t="$default_begin"
fi
# Se è un intervallo tipo xxx-
if [ -z "$end_t" ]; then
end_t="$default_end"
fi
append=
for i in $list_elem; do
[ $i = "$begin_t" ] && append=1
[ ! -z $append ] && exit_t="$exit_t, $NOT$i $rest"
[ $i = "$end_t" ] && append=
done
;;
esac
if [ ! -z "$exit_t" ]; then
parse_period "$exit_t" "$criteria"
if [ $? -eq 1 ]; then
return 1
fi
exit_t=
dont_eval=1
break
fi
echo "checking token=$token"
case $token in
[[:digit:]][[:digit:]]:[[:digit:]][[:digit:]])
echo "--> HH:MM"
check_h="$(echo $token|cut -d':' -f1)"
check_m="$(echo $token|cut -d':' -f2)"
criteria="$criteria && [ \"$check_h:$check_m\" $NOT= \"$now_hour:$now_min\" ]"
;;
mon|tue|wed|thu|fri|sat|sun)
echo "--> abbreviated weekday"
check_wday="$token"
criteria="$criteria && [ $check_wday $NOT= $name_today ]"
;;
jan|feb|mar|apr|may|jun|jul|ago|sep|oct|nov|dec)
echo "--> abbreviated monthname"
check_month="$token"
criteria="$criteria && [ $check_month $NOT= $name_month ]"
;;
[[:digit:]]d|[[:digit:]][[:digit:]]d)
echo "--> days period"
check_pday=$(echo $token|cut -d'd' -f1)
check_pday=$[ 86400 * check_pday ]
criteria="$criteria && [ $NOT $check_pday -lt $stamp_file ]"
;;
[[:digit:]]M|[[:digit:]][[:digit:]]M)
echo "--> month period"
check_pmonth=$(echo $token|cut -d'M' -f1)
check_pmonth=$[ 2592000 * check_pmonth ]
criteria="$criteria && [ $NOT $check_pmonth -lt $stamp_file ]"
;;
[[:digit:]]|[[:digit:]][[:digit:]])
echo "--> Exact day"
if [ -z "$NOT" ]; then
criteria="$criteria && [ $today -eq $token ]"
else
criteria="$criteria && [ $today -ne $token ]"
fi
;;
*)
echo "Error in period definition. Token: $token"
exit 3
;;
esac
NOT=
done
# Qui faccio l'eval criteria per controllare se la condizione è verificata
# Se si -> exit; se no -> continua.
if [ -z "$dont_eval" ]; then
criteria=${criteria:4}
echo "evaluating:"
echo "$criteria"
eval "if $criteria; then return 1; fi"
fi
done
IFS="$OLDIFS"
return 0
}
parse_period "$1"
if [ $? -eq 1 ]; then
echo "VERIFIED"
else
echo "not verified"
fi
----------------------------- CUT -----------------------------
--
Saluti,
Stefano
>From address@hidden Thu Sep 19 06:13:19 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJC-00043M-00
for address@hidden; Thu, 19 Sep 2002 06:13:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJA-00042h-00
for address@hidden; Thu, 19 Sep 2002 06:13:17 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJ7-00042C-00
for address@hidden; Thu, 19 Sep 2002 06:13:15 -0400
Received: (qmail 1152 invoked by uid 7808); 19 Sep 2002 08:59:01 -0000
Resent-Message-ID:
Delivered-To: address@hidden
Received: (qmail 817 invoked from network); 7 Sep 2002 12:45:28 -0000
Received: from cervellone.1.168.192.in-addr.arpa (HELO localhost) (192.168.1.1)
by cervellone.1.168.192.in-addr.arpa with SMTP; 7 Sep 2002 12:45:28 -0000
Received: from popmail.inwind.it [193.70.192.170]
by localhost with POP3 (fetchmail-5.5.2)
for address@hidden (single-drop); Sat, 07 Sep 2002 14:45:28 +0200 (CEST)
Received: from smtp6.libero.it (193.70.192.59) by ims9a.libero.it (6.5.025)
id 3D2AEE2700E35182 for address@hidden; Fri, 6 Sep 2002 09:55:32 +0200
Received: from ganymede.connes.org (62.212.97.15) by smtp6.libero.it (6.5.028)
id 3D63CC7E02537DDE for address@hidden; Fri, 6 Sep 2002 09:55:32 +0200
Received: from connes.com (connes.org [62.212.97.15])
by ganymede.connes.org (mail server) with ESMTP id 3C577500
for ; Fri, 6 Sep 2002 09:55:30 +0200 (CEST)
Message-ID:
Date: Fri, 06 Sep 2002 09:55:29 +0200
From: Frederic Connes
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020731
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
References:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-From: address@hidden
Resent-Date: Thu, 19 Sep 2002 10:59:01 +0200
Resent-To: address@hidden
Subject: [Rottlog-develop] Re: Little patches for rot[t]log
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
address@hidden wrote:
>>>Do you use virott[rc,month,day,week] to edit files?
>>
>>Yes I use it, but sometimes I edit files directly.
>>Maybe it would be nice if syntax checking was done by a separate
>>program, called by virott* but which could also be run independently.
>
> Why? This method is not slow and functions defined in it can be used
> by check_rc and check_mwd too, so it can be share pieces of code
> without include a third file...
I'm sorry, I missed rottlog --checkrc.
Maybe it could have a option to check the rc file ?
I will download 0.36alpha as soon as it is available.
>From address@hidden Thu Sep 19 06:13:20 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJE-00043s-00
for address@hidden; Thu, 19 Sep 2002 06:13:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJA-00042s-00
for address@hidden; Thu, 19 Sep 2002 06:13:19 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJ7-00042A-00
for address@hidden; Thu, 19 Sep 2002 06:13:15 -0400
Received: (qmail 1168 invoked by uid 7808); 19 Sep 2002 08:59:02 -0000
Resent-Message-ID:
Delivered-To: address@hidden
Received: (qmail 481 invoked from network); 19 Sep 2002 06:37:53 -0000
Received: from cervellone.1.168.192.in-addr.arpa (HELO localhost) (192.168.1.1)
by cervellone.1.168.192.in-addr.arpa with SMTP; 19 Sep 2002 06:37:53 -0000
Received: from popmail.inwind.it [193.70.192.170]
by localhost with POP3 (fetchmail-5.5.2)
for address@hidden (single-drop); Thu, 19 Sep 2002 08:37:53 +0200 (CEST)
Received: from smtp6.libero.it (193.70.192.59) by ims9a.libero.it (6.5.025)
id 3D2AEE27011EC842 for address@hidden; Wed, 18 Sep 2002 19:38:39 +0200
Received: from ganymede.connes.org (62.212.97.15) by smtp6.libero.it (6.5.028)
id 3D63CC7E0478EEFD for address@hidden; Wed, 18 Sep 2002 19:38:39 +0200
Received: from connes.com (connes.org [62.212.97.15])
by ganymede.connes.org (mail server) with ESMTP id 16E35793
for ; Wed, 18 Sep 2002 19:38:21 +0200 (CEST)
Message-ID:
Date: Wed, 18 Sep 2002 19:38:19 +0200
From: Frederic Connes
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020917
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
References:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-From: address@hidden
Resent-Date: Thu, 19 Sep 2002 10:59:02 +0200
Resent-To: address@hidden
Subject: [Rottlog-develop] Re: Just an idea I had
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
address@hidden wrote:
> A specific date is a period too (each 15th of the month is a period of 30
> days)...
Well, not exactly: I see it as a date with a * for the month and year.
If it were a period, the delay between 2 rotations would be constant:
here it varies between 28 and 31, so what's constant is the date.
>
>
>>So maybe it's worth being explicit about it and use two variables:
>>- period
>>- date
>
> I think it's better to merge two syntaxes in one parameter.
> period parameter will be a very powerful option...
Ok, let's have a loose definition of what a period is ;)
Are you sure it won't add some complexity to the syntax ?
>
>
>>What would be great would be to be able to AND and OR the dates, so one
>>could say:
>>date mon,tue,wed,thu,fri 13:00,20:00
>>date sat 20:00
>>(this would then allow some very powerful enhancements like mon-fri or a
>>NOT operator)
>
> I'm thinking to a period parameter able to handle:
> period mon 10:00,fri-wed 23:00
> period !mon 20:00,10:00
> period 15d 10:00,22:00
> period 7 13:00
> period jan-jun 23:00,jul-sep 10:00,oct-dec 23:00 (*)
> period !jul-sep 23:00,10:00 (*)
>
> (*) They are equivalent
>
> Where:
> space = AND
> comma = OR
> ! = NOT
> - = interval
Wow, that's really cool !
>
>
>>Now, about the files:
>>Rottlog uses 3 files, which correspond to the most current rotation
>>periods. I think it is possible to extend this to something fully
>>customizable.
>
> Very interesting. But this will be a very big change to the behavoir of
> rottlog. I think that for now we can spend our time to add use of custom
> config file and improve period parameter. We will talk about these very
> interesting ideas just after this... I hope this decision will not hurt
> you...
Of course not, make yourself easy ;)
I also think the priority is to have a working period parameter.
Then we'll see about the files.
>
> [...]
>
>>apache {
>> date mon,tue,wed,thu,fri 13:00,20:00
>> date sat 20:00
>>}
>>if for instance you have many virtual hosts and want to group your
>>apache log files
>
> You can already do something similar with "include" directive and
> meta-variables. Example:
>
> file: apache.rtl
> /var/www/www.domain1.com/log/access.log,/var/www/www.domain2.com/log/access.log {
> storedir @3
> createdir
> period mon,tue,wed,thu,fri 13:00,20:00
> ....
> }
> apache.rtl file can be included in custom config file.
Ok. But the period still needs to be included in each statement.
What about being able to start a file with an external period statement
and then include daily, weekly and monthly in custom ?
For example, daily would start with:
period 1d
file1 {
...
}
...
This way:
- it would be clear, inside a file, when it is called
- there would only be one file (custom) that calls all the others, so
the design would be quite modular: eg, if I don't want the monthly file,
I just drop the include monthly line in custom.
- maybe custom should be renamed to reflect that it is the "main"
rotation configuration file, and an rc option added to allow to
customize the name.
But ok, let's see that after period.
>
>
>>I think this way it would be possible to organize the rotation as in the
>>current rottlog or as in logrotate or as the user wants to.
>
> If a user wants to use only one file can use custom config file... I think I
> will improve my Log2Rot script (a test-version of a script that converts
> logrotate config files to rottlog config files...)
Ok.
>
> I've open a project on savannah.org. I will add a mailing list for
> developers. We will talk on that list.
> If you want I can add you to the list of developers...
With pleasure !
>From address@hidden Thu Sep 19 06:13:22 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJG-00044L-00
for address@hidden; Thu, 19 Sep 2002 06:13:22 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJC-00043S-00
for address@hidden; Thu, 19 Sep 2002 06:13:20 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJ7-00042B-00
for address@hidden; Thu, 19 Sep 2002 06:13:14 -0400
Received: (qmail 1159 invoked by uid 7808); 19 Sep 2002 08:59:02 -0000
Resent-Message-ID:
Delivered-To: address@hidden
Received: (qmail 686 invoked from network); 11 Sep 2002 15:20:41 -0000
Received: from cervellone.1.168.192.in-addr.arpa (HELO localhost) (192.168.1.1)
by cervellone.1.168.192.in-addr.arpa with SMTP; 11 Sep 2002 15:20:41 -0000
Received: from popmail.inwind.it [193.70.192.170]
by localhost with POP3 (fetchmail-5.5.2)
for address@hidden (single-drop); Wed, 11 Sep 2002 17:20:41 +0200 (CEST)
Received: from smtp6.libero.it (193.70.192.59) by ims9a.libero.it (6.5.025)
id 3D2AEE2700F9F3A3 for address@hidden; Wed, 11 Sep 2002 10:25:04 +0200
Received: from ganymede.connes.org (62.212.97.15) by smtp6.libero.it (6.5.028)
id 3D63CC7E0336A3F2 for address@hidden; Wed, 11 Sep 2002 10:25:04 +0200
Received: from connes.com (connes.org [62.212.97.15])
by ganymede.connes.org (mail server) with ESMTP id 5CC6C462
for ; Wed, 11 Sep 2002 10:25:02 +0200 (CEST)
Message-ID:
Date: Wed, 11 Sep 2002 10:25:01 +0200
From: Frederic Connes
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020731
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
References:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-From: address@hidden
Resent-Date: Thu, 19 Sep 2002 10:59:02 +0200
Resent-To: address@hidden
Subject: [Rottlog-develop] Re: Just an idea I had
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
address@hidden wrote:
> I was thinking to improve "forceday" parameter...
That would be great !
>>So here's my suggestion:
>>- use only 2 files: rc and rotate (or any other name)
>
> It's most like Red Hat's logrotate. Do you think it's better solution?
> I'm trying to make something with new ideas... When I will see that these
> ideas are not good I will change it, but for now it's time to test it...
I thought the 3 files were mandatory. I just checked they're not, so
it's fine as one can only have one file if he just needs one file.
By the way, maybe the name "daily" is be a little bit confusing as this
file can contain files that are only rotated once a month for instance
with forceday.
Maybe there could be another file, called something like "custom", that
would contain the complex rules for rotating (I mean the forceday
rules), and where it would be possible to say "rotate every 2 hours",
"rotate every sunday", "rotate on the 15th of the month", "rotate every
3 days", "rotate each time rottlog is run", etc.
>
> Have you read something about collate/tarcollate options?
> These options permit to monthly archive a logfile containing weekly rotated
> logfiles. These options works very well with my idea of three configuration
> files.
> What do you think about collate/tarcollate options?
I think this is very useful as it allows a "two level" log rotation.
I also thought about the following things:
- for the people rotating their files every week, it would be great to
have a meta-variable that contains the number of the week in the year (1
to 52). Maybe a variable in rc could tell when a week begins (sunday,
monday or other).
- it would also be very useful if the "last time date" were available: I
mean "last month date" in monthly, "last week date" in weekly,
"yesterday" in daily. This is because if you call your rotated files
with the date, maybe you don't want the date to be the date of the
rotation but the date of the first logs in your files. For instance, if
I call my rotated files with the number of the week, the week 1 will be
rotated at the beginning of week 2, so it would be nice to be able to
call the file "week1" even if we are in week 2.
See you,
Fred
>From address@hidden Thu Sep 19 06:13:23 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJG-00044a-00
for address@hidden; Thu, 19 Sep 2002 06:13:22 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJD-00043m-00
for address@hidden; Thu, 19 Sep 2002 06:13:21 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJ8-00042F-00
for address@hidden; Thu, 19 Sep 2002 06:13:19 -0400
Received: (qmail 1148 invoked by uid 7808); 19 Sep 2002 08:59:01 -0000
Resent-Message-ID:
Delivered-To: address@hidden
Received: (qmail 651 invoked from network); 5 Sep 2002 09:50:42 -0000
Received: from cervellone.1.168.192.in-addr.arpa (HELO localhost) (192.168.1.1)
by cervellone.1.168.192.in-addr.arpa with SMTP; 5 Sep 2002 09:50:42 -0000
Received: from popmail.inwind.it [193.70.192.170]
by localhost with POP3 (fetchmail-5.5.2)
for address@hidden (single-drop); Thu, 05 Sep 2002 11:50:42 +0200 (CEST)
Received: from smtp4.libero.it (193.70.192.54) by ims9a.libero.it (6.5.025)
id 3D2AEE2700DE638B for address@hidden; Thu, 5 Sep 2002 11:34:39 +0200
Received: from ganymede.connes.org (62.212.97.15) by smtp4.libero.it (6.5.028)
id 3D4E476304A24508 for address@hidden; Thu, 5 Sep 2002 11:34:39 +0200
Received: from connes.com (connes.org [62.212.97.15])
by ganymede.connes.org (mail server) with ESMTP id 2FA725E2
for ; Thu, 5 Sep 2002 11:34:38 +0200 (CEST)
Message-ID:
Date: Thu, 05 Sep 2002 11:34:37 +0200
From: Frederic Connes
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020731
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
References:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-From: address@hidden
Resent-Date: Thu, 19 Sep 2002 10:59:01 +0200
Resent-To: address@hidden
Subject: [Rottlog-develop] Re: Little patches for rot[t]log
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
Hi Stefano :)
Thanks for updating the code !
I would be happy to test it, do you have a kind of cvs access where one
can get the current devel version ?
> Do you use virott[rc,month,day,week] to edit files?
Yes I use it, but sometimes I edit files directly.
Maybe it would be nice if syntax checking was done by a separate
program, called by virott* but which could also be run independently.
Fred
>From address@hidden Thu Sep 19 06:13:25 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJI-00044x-00
for address@hidden; Thu, 19 Sep 2002 06:13:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJF-000444-00
for address@hidden; Thu, 19 Sep 2002 06:13:23 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJ8-00042G-00
for address@hidden; Thu, 19 Sep 2002 06:13:19 -0400
Received: (qmail 1164 invoked by uid 7808); 19 Sep 2002 08:59:02 -0000
Resent-Message-ID:
Delivered-To: address@hidden
Received: (qmail 7346 invoked from network); 17 Sep 2002 10:31:02 -0000
Received: from cervellone.1.168.192.in-addr.arpa (HELO localhost) (192.168.1.1)
by cervellone.1.168.192.in-addr.arpa with SMTP; 17 Sep 2002 10:31:02 -0000
Received: from popmail.inwind.it [193.70.192.170]
by localhost with POP3 (fetchmail-5.5.2)
for address@hidden (single-drop); Tue, 17 Sep 2002 12:31:02 +0200 (CEST)
Received: from smtp6.libero.it (193.70.192.59) by ims9a.libero.it (6.5.025)
id 3D2AEE2701166951 for address@hidden; Tue, 17 Sep 2002 11:44:21 +0200
Received: from ganymede.connes.org (62.212.97.15) by smtp6.libero.it (6.5.028)
id 3D63CC7E043298C2 for address@hidden; Tue, 17 Sep 2002 11:44:21 +0200
Received: from connes.com (connes.org [62.212.97.15])
by ganymede.connes.org (mail server) with ESMTP id 560C9593
for ; Tue, 17 Sep 2002 11:44:19 +0200 (CEST)
Message-ID:
Date: Tue, 17 Sep 2002 11:44:18 +0200
From: Frederic Connes
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020731
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
References:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-From: address@hidden
Resent-Date: Thu, 19 Sep 2002 10:59:02 +0200
Resent-To: address@hidden
Subject: [Rottlog-develop] Re: Just an idea I had
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
Hi Stefano,
> I think I will add "custom" config file and improve much more forceday
> parameter. Probably I will rename it to "period" and let to handle somethink
> like:
> (following your ideas)
> period n -> Each n day
> period Dd -> Each Dth day of the month
> period -> Each of the week
> period 0 -> Each time rottlog is called (*)
> period HHh -> Each HH hour (*)
> period MMm -> Each MM minutes (*)
>
> (*) It depends on rottlog's entries in crontab
>
> What do you think about it?
>
Well, I think this would be great !
I thought about a way to generalise the rotation format.
Here's where I came to:
Basically, there are two ways to rotate the files:
- on a regular basis (every 2 days, every week...)
- on a specific date (each sunday, each 15th of the month...)
So maybe it's worth being explicit about it and use two variables:
- period
- date
The syntax of period would be:
period
could be:
- m (minutes)
- h (hours)
- d (days)
- w (weeks)
- M (months)
If is missing, assume it is d (or let it be configured in rc)
If is 0, rotate each time rottlog is called
(so 0, 0d, 0h are the same)
The syntax of date would be:
date
could be:
- a weekday, abbreviated or not (sun or sunday)
- a monthday, abbreviated or not (sep or september)
- a day of month (1 to 31): a number
- a time (hh:mm): two numbers separated with a ":"
I think the time is useful if for example one works in a company that
has a busy internal web site and wants to rotate the web logs at 13:00
when people are at lunch (but not the other logs, so cron would be
useless here).
What would be great would be to be able to AND and OR the dates, so one
could say:
date mon,tue,wed,thu,fri 13:00,20:00
date sat 20:00
(this would then allow some very powerful enhancements like mon-fri or a
NOT operator)
Now, about the files:
Rottlog uses 3 files, which correspond to the most current rotation
periods. I think it is possible to extend this to something fully
customizable.
Let use the period and date syntax to define when a configuration file
must be read. Now you can define the daily, weekly and monthly files as
specific cases, but you can also define any other file that fits your needs.
For example, you could define the following files:
weekly {
period 1w
}
daily {
period 1d
date 04:00
}
if you call rottlog with cron every hour for some reason but want to
rotate the files defined in daily at 04:00.
apache {
date mon,tue,wed,thu,fri 13:00,20:00
date sat 20:00
}
if for instance you have many virtual hosts and want to group your
apache log files
bycron {
period 0
}
if you want to group the files to rotate each time rottlog is called.
anotherfile {
custom
}
custom would mean: in this file, look at the date and period in each
logfile entry (this is for people having so specific needs that they
would need to define one file per logfile entry: with custom, they could
have only one file if they want, as in RedHat logrotate).
Now rottlog wouldn't make any asumption about the way the user wants to
rotate the files, and it would allow him to define as many configuration
files as he needs to organize the rotations, from one (with custom) to
infinite.
Maybe the following definitions could be put in rc, and the following
lines be added by default:
daily {
period 1d
}
weekly {
period 1w
}
monthly {
period 1M
}
custom {
custom
}
I think this way it would be possible to organize the rotation as in the
current rottlog or as in logrotate or as the user wants to.
What do you think about it ?
>From address@hidden Thu Sep 19 06:13:26 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJK-00045C-00
for address@hidden; Thu, 19 Sep 2002 06:13:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJH-00044l-00
for address@hidden; Thu, 19 Sep 2002 06:13:25 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJF-00042E-00
for address@hidden; Thu, 19 Sep 2002 06:13:22 -0400
Received: (qmail 1156 invoked by uid 7808); 19 Sep 2002 08:59:02 -0000
Resent-Message-ID:
Delivered-To: address@hidden
Received: (qmail 589 invoked from network); 9 Sep 2002 06:57:16 -0000
Received: from cervellone.1.168.192.in-addr.arpa (HELO localhost) (192.168.1.1)
by cervellone.1.168.192.in-addr.arpa with SMTP; 9 Sep 2002 06:57:16 -0000
Received: from popmail.inwind.it [193.70.192.170]
by localhost with POP3 (fetchmail-5.5.2)
for address@hidden (single-drop); Mon, 09 Sep 2002 08:57:16 +0200 (CEST)
Received: from smtp4.libero.it (193.70.192.54) by ims9a.libero.it (6.5.025)
id 3D2AEE2700ECC0F7 for address@hidden; Sun, 8 Sep 2002 18:47:53 +0200
Received: from ganymede.connes.org (62.212.97.15) by smtp4.libero.it (6.5.028)
id 3D4E4763051E71F1 for address@hidden; Sun, 8 Sep 2002 18:47:53 +0200
Received: from connes.com (connes.org [62.212.97.15])
by ganymede.connes.org (mail server) with ESMTP id 68E7F58
for ; Sun, 8 Sep 2002 18:47:49 +0200 (CEST)
Message-ID:
Date: Sun, 08 Sep 2002 18:47:47 +0200
From: Frederic Connes
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020731
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-From: address@hidden
Resent-Date: Thu, 19 Sep 2002 10:59:02 +0200
Resent-To: address@hidden
Subject: [Rottlog-develop] Just an idea I had
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
Hi Stefano,
I thought about something for rottlog yesterday. Please tell me if
that's not the way you want rottlog to be used.
Now, there are 4 configuration files, including 3 for the rotate operations.
What I thought is that:
- it's not easy to tell: rotate every 3 days, or each sunday, or each
15th of the month (ok, it's possible but not very intuitive)
- usually one won't really use the 3 files: people will mainly use the
one that fits their needs, depending of the amount of logs they have.
There may be exceptions if for instance you're running a web server, but
usually one file is more filled than the others.
So here's my suggestion:
- use only 2 files: rc and rotate (or any other name)
- rotate has the same syntax that daily/weekly/monthly, but it's
possible (not mandatory) to include a rotate_on= parameter in each
logfile entry
- the format of the rotate_on parameter would be (for example):
- *: each time rottlog is run
- 1d: every day
- 3d: every 3 days
- sun: every sunday
- wed,tue: every monday and tuesday
- 15: every 15th of the month
- 1m: every month
- sep: each september
so, cut the input with "," and check the first character:
- * -> rotate
- number -> find last char, get number, check date
- char -> get first 3 chars (so it could be possible to write the
complete day/month name), find if it's a day or month, check date
- rc can contain a rotate= parameter, which is used when no rotate
parameter is present for a logfile
- if no rotate parameter is given in rc, asume it is * (so that it
could be possible to configure the cron if something can't be handled by
rottlog)
I think this would make rottlog the very tool to rotate logs.
See you,
Fred
>From address@hidden Thu Sep 19 06:13:26 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17ryJK-00045N-00
for address@hidden; Thu, 19 Sep 2002 06:13:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17ryJG-00044Q-00
for address@hidden; Thu, 19 Sep 2002 06:13:25 -0400
Received: from [62.98.136.215] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17ryJ8-00042H-00
for address@hidden; Thu, 19 Sep 2002 06:13:18 -0400
Received: (qmail 1145 invoked by uid 7808); 19 Sep 2002 08:59:01 -0000
Resent-Message-ID:
Delivered-To: address@hidden
Received: (qmail 521 invoked from network); 4 Sep 2002 13:00:58 -0000
Received: from cervellone.1.168.192.in-addr.arpa (HELO localhost) (192.168.1.1)
by cervellone.1.168.192.in-addr.arpa with SMTP; 4 Sep 2002 13:00:58 -0000
Received: from popmail.inwind.it [193.70.192.170]
by localhost with POP3 (fetchmail-5.5.2)
for address@hidden (single-drop); Wed, 04 Sep 2002 15:00:58 +0200 (CEST)
Received: from smtp4.libero.it (193.70.192.54) by ims9a.libero.it (6.5.025)
id 3D2AEE2700D96175 for address@hidden; Wed, 4 Sep 2002 12:56:00 +0200
Received: from ganymede.connes.org (62.212.97.15) by smtp4.libero.it (6.5.028)
id 3D4E47630457FE12 for address@hidden; Wed, 4 Sep 2002 12:56:00 +0200
Received: from connes.com (connes.org [62.212.97.15])
by ganymede.connes.org (mail server) with ESMTP id 3E6D3E7
for ; Wed, 4 Sep 2002 12:54:23 +0200 (CEST)
Message-ID:
Date: Wed, 04 Sep 2002 12:54:21 +0200
From: Frederic Connes
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020731
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
Content-Type: multipart/mixed;
boundary="------------050605060409060103010508"
Resent-From: address@hidden
Resent-Date: Thu, 19 Sep 2002 10:59:01 +0200
Resent-To: address@hidden
Subject: [Rottlog-develop] Little patches for rot[t]log
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
This is a multi-part message in MIME format.
--------------050605060409060103010508
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I use rot[t]log since 0.32alpha and I appreciate it.
I noticed some little problems, so here are some patches against
0.35alpha to correct them:
- createdir.patch: createdir in rc did nothing, because $CREATE_DIR was
used instead of $create_dir
- typos.patch: fixes some typos and removes useless blank spaces
I also noticed (but have no time to fix):
- nomail in rc does nothing, because $mail is only unset when parsing
monthly/weekly/daily (so a workaround is to put nomail in the
configuration section of each file to rotate)
- @1, @2... doesn't work with storedir (or did I miss something ?)
it creates a "@1", "@2"... directory
- it would be great if storefile could be put in rc, so if one wants the
rotated files to be called for instance @address@hidden one doesn't
have to repeat it for each file.
Thanks,
Frederic Connes
--------------050605060409060103010508
Content-Type: text/plain;
name="createdir.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="createdir.patch"
--- /usr/src/rottlog-0.35alpha/rottlog 2002-09-04 09:41:44.000000000 +0200
+++ rottlog 2002-09-04 11:04:32.000000000 +0200
@@ -568,7 +568,7 @@
expand_metavar "$log" "$pcdpc"
pcdpc="$expanded_metavars"
debecho "prepare_rotate: After expand_metavar pcdpc=$pcdpc"
- if [ ! -d "$pcdpc" ] && [ ! -z "$CREATEDIR" ]; then
+ if [ ! -d "$pcdpc" ] && [ ! -z "$createdir" ]; then
debecho "prepare_rotate: Trying to make $pcdpc..."
mkdir -p "$pcdpc" 2>/dev/null
chown $dir_own "$pcdpc"
@@ -1499,7 +1499,7 @@
shift
fi
check_perms "$dir_perm" "$dir_own" "$dir_grp" createdir
- CREATEDIR=1
+ createdir=1
;;
append-only)
CHATTR=1
--------------050605060409060103010508
Content-Type: text/plain;
name="typos.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="typos.patch"
--- /usr/src/rottlog-0.35alpha/rottlog 2002-09-04 11:05:11.000000000 +0200
+++ rottlog 2002-09-04 12:39:10.000000000 +0200
@@ -4,12 +4,12 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
@@ -19,7 +19,7 @@
#
# WARNING: This script is bash2.x compatible.
#
-# This is rot[t]log
+# This is rot[t]log
# Utility to archive, rotates, compresses, and mails system logs.
#
#
@@ -50,11 +50,11 @@
echo
exit 1
fi
-
+
mkdir $tmpd
chmod 1700 $tmpd
RETURN=$?
-
+
if [ $RETURN -gt 0 ]; then
echo
echo "**** Failed to create temp dir!"
@@ -64,11 +64,11 @@
echo
exit $RETURN
fi
-
+
# I think it's a good idea to let rottlog to ignore these signals, but
# if you think it's not useful, you can comment it out.
trap '' 1 2 5 6
-
+
if [ -z "$1" ]; then
TEMPDIR="$tmpd"
tmpfil=$TEMPDIR/rotttempfile.$$
@@ -104,13 +104,13 @@
# Error codes
E_NO_ERROR=0
E_FILE_NOREAD=1
-E_SYNTAX_ERROR=2
-E_BAD_LOGPART=3
-E_BAD_ENDSCRIPT=4
-E_BAD_CREATE=5
-E_BAD_ROTATE=6
-E_BAD_PARAM=7
-E_NO_STOREDIR=8
+E_SYNTAX_ERROR=2
+E_BAD_LOGPART=3
+E_BAD_ENDSCRIPT=4
+E_BAD_CREATE=5
+E_BAD_ROTATE=6
+E_BAD_PARAM=7
+E_NO_STOREDIR=8
E_CANT_CREATE=9
E_NO_PAGER=10
E_CANT_UNCOMPRESS=11
@@ -150,9 +150,9 @@
BREAK_CYCLE=255
# ################################################################
-#
+#
# END CONFIGURATION OF INTERNAL VARIABLES
-#
+#
# ################################################################
trap 'rm -rf $TEMPDIR $LOCK; exit $USCITA' 0
@@ -204,7 +204,7 @@
USCITA=$E_NO_RCFILE
exit $USCITA
fi
-
+
for i in $RC_VARS; do
tmp_param=$(awk "/^$i/ { print }" < $MAINRC)
if [ $(expr "$tmp_param" : ".*=.*") -ne ${#tmp_param} ]; then
@@ -275,7 +275,7 @@
USCITA=$E_FILE_NOREAD
exit $USCITA
fi
-
+
if [ -z "$grp" ]; then
echo "Can't extract group from filename!"
USCITA=$E_FILE_NOREAD
@@ -362,12 +362,12 @@
# "$1" sta in DELAYED_FILES, se è così viene compresso rimanendo sempre
# con il nome preso da DELAYED_FILES, e si continua la procedura per il
# prossimo file che sarà solo "tagliato" se necessario ma non compresso.
- # Se il file "$1" non è presente in DELAYED_FILES si inserisce $2 in
+ # Se il file "$1" non è presente in DELAYED_FILES si inserisce $2 in
# questo file, lo si copia in $2 e si prosegue con eventuali "tagli"
# Se non c'è DELAY allora prima si copia il log in un file temporaneo,
# si comprime questo file temporaneo in $2, poi si applicano eventuali
- # tagli a $1.
+ # tagli a $1.
# Gestisco la compressione a distanza di una rotazione...
@@ -378,7 +378,7 @@
debecho "Archive/rotation not necessary"
return
fi
-
+
if [ ! -z "$DELAY" ]; then
IS_OLD=$(grep "$1" $DELAYED_FILES 2>/dev/null)
if [ ! -z "$IS_OLD" ]; then
@@ -388,7 +388,7 @@
if [ ! -r "$old_rotated" ]; then
if [ ! -z "$remove_missing" ]; then
(
- echo "Error in compress procedure. Old not compressed logfile does'nt"
+ echo "Error in compress procedure. Old not compressed logfile doesn't"
echo "exists or is not readable. Erasing from control files."
) >>$TMPERRMSG
remove_from_ctrlfile "$1"
@@ -576,7 +576,7 @@
chmod $dir_perm "$pcdpc"
fi
if [ ! -d "$pcdpc" ]; then
- echo "Directory to store compressed log does'nt exist!"
+ echo "Directory to store compressed log doesn't exist!"
echo "Log=$log"
echo "Dir=$pcdpc"
USCITA=$E_NO_STOREDIR
@@ -584,7 +584,7 @@
fi
make_storefile "$log"
-
+
# ddd//bbb --> ddd/bbb
storefile=${storefile//\/\//\/}
@@ -611,7 +611,7 @@
if [ -z "$COLLATE" ]; then
esegui_rotate "$log" "$storefile"
else
- collate_logfiles "$log" "$storefile"
+ collate_logfiles "$log" "$storefile"
fi
# Eseguiamo lo script dopo la rotazione
@@ -636,11 +636,11 @@
. $TEMPDIR/meta-postrotate.$$
fi
fi
-
+
if [ ! -z "$CHATTR" ]; then
chattr +a "$log"
fi
-
+
date_end=$(date)
if [ ! -z "$mail" ]; then
debecho "prepare_rotate: mailing to $touser action report"
@@ -665,7 +665,7 @@
. $TMPROTTCOLLECT.$logname
expand_metavar "$COLLECT_LOG" "$COLLECT_ARCDIR"
pcdpc="$expanded_metavars"
-
+
# trick: faccio una espansione delle meta-variabili
# "a capa mia"
COLLECT_ARCFIL="${COLLECT_ARCFIL//address@hidden/*}"
@@ -702,7 +702,7 @@
fi
fi
count=1
- case $COLLATE in
+ case $COLLATE in
tar)
#Shipped in 0.30alpha. It works
#debecho "Performing TARCOLLATE"
@@ -723,7 +723,7 @@
debecho "Copied $f in $MAKETREE"
continue
fi
-
+
#if [ ! -z "$COLLECT_DELAY" ] && \
# [ ! -z $(grep "^.*=$f" $DELAYED_FILES 2>/dev/null) ]; then
if [ ! -z "$COLLECT_DELAY" ] && [ "$TOBEPACK" = "$f" ]; then
@@ -775,11 +775,11 @@
collect_log_info () {
local p=$2
local find="$1"
-
+
for find in address@hidden; do
debecho "Searching for matching logfile in address@hidden"
if [ "$find" = "$1" ]; then
- debecho "Found matching logfile $find"
address@hidden debecho "Found matching logfile $find"
if [ -z "$ROTATE" ] || [ $ROTATE -ne $p ]; then
echo "Invalid rotate period for collate link"
return $E_BAD_PERIOD
@@ -848,13 +848,13 @@
filna=${filna//\\\\\\*}
case "$filna" in
- *\]*|*\[*|*\{*|*\}*|*\?*)
+ *\]*|*\[*|*\{*|*\}*|*\?*)
echo "Only * wildcard can be used!"
USCITA=$E_BAD_WILDCARD
exit $USCITA
;;
esac
-
+
if [ $(expr index "$filna" "\*" ) -eq 0 ]; then
debecho "No wildcard in this filename"
return 0
@@ -928,11 +928,11 @@
tmpstr=${tmpstr//address@hidden/$year}
tmpstr=${tmpstr//address@hidden/$month}
tmpstr=${tmpstr//address@hidden/$day}
- #TODO: prima di espandere questa cerco in DELAYED_FILES
+ #TODO: prima di espandere questa cerco in DELAYED_FILES
tmpstr=${tmpstr//address@hidden/$comp_ext}
tmpstr=${tmpstr//address@hidden/$meta_tmp_dir}
- # Only if path and filename is already expanded these two metavariables
+ # Only if path and filename is already expanded these two metavariables
# can be sustituted.
if [ $(expr index "$pcdpc" "\@") -eq 0 ]; then
case "$tmpstr" in
@@ -985,7 +985,7 @@
qdldl="$1"
local poschar=$[ ${#qdldl} - 1 ]
local lastchar=$(echo "${qdldl:$poschar:1}"|tr 'a-z' 'A-Z')
-
+
case "$lastchar" in
L)
# sono righe!
@@ -1035,9 +1035,9 @@
check_perms () {
local tmpown
local tmpgrp
-
+
debecho "Checking permissions..."
-
+
if [ "$1" != "" ]; then
debecho "Checking for mode $1..."
if [ ${#1} -gt 4 ]; then
@@ -1058,7 +1058,7 @@
tmpvar=$(grep "^$2:" /etc/passwd 2>/dev/null|cut -d':' -f1)
if [ -z "$tmpvar" ]; then
echo "Error analyzing $4 parameter"
- echo "Invalid owner! It does'nt exists in /etc/passwd."
+ echo "Invalid owner! It doesn't exists in /etc/passwd."
USCITA=$E_INVALID_OWN
exit $USCITA
fi
@@ -1069,7 +1069,7 @@
tmpvar=$(grep "^$3:" /etc/group 2>/dev/null)
if [ -z "$tmpvar" ]; then
echo "Error analyzing $4 parameter"
- echo "Invalid group! It does'nt exists in /etc/group."
+ echo "Invalid group! It doesn't exists in /etc/group."
USCITA=$E_INVALID_GRP
exit $USCITA
fi
@@ -1154,7 +1154,7 @@
debecho "End of filename expansion"
}
-read_and_do() {
+read_and_do() {
if [ -z "$1" ]; then
cmd_exec=( prepare_rotate )
else
@@ -1213,7 +1213,7 @@
while [ "$LINEA" != "}" ]; do
# Dopo la prima riga (contenente { ) si analizzano le successive
# la sintassi è:
-
+
set -- $LINEA
debecho "Analyzing parameters of '$LINEA'"
while [ $# -gt 0 ]; do
@@ -1551,7 +1551,7 @@
debecho "Sanity check: exit from subshell due to FORCE_DAY=$FORCE_DAY"
exit
fi
-
+
# se c'è delaycompress si ignora nocompress
debecho "Ignoring nocompress if using delaycompress"
if [ ! -z "$NOCOMPRESS" ] && [ -z "$DELAY" ]; then
@@ -1608,7 +1608,7 @@
expand_filenames $filenames
- (
+ (
if [ -z "$COLLATE" ]; then
exit 0
fi
@@ -1635,7 +1635,7 @@
# se modfico anche collect_log_info
debecho "Calling collect_log_info with log=${pcldr[0]} and period=$period"
COLLATE=
- read_and_do collect_log_info "${pcldr[0]}" $period
+ read_and_do collect_log_info "${pcldr[0]}" $period
debecho "Restoring original purged_file variable value..."
PURGED_FILE="$orig_PURGED_FILE"
)
@@ -1643,7 +1643,7 @@
if [ $RET_VAL -ne 0 ]; then
exit $RET_VAL
fi
-
+
# call function specified in "$1" with all other parameters
address@hidden
EXIT_CODE=$?
@@ -1665,7 +1665,7 @@
fi
#unset pcldr
done <$PURGED_FILE
-
+
}
mail_to_admin() {
@@ -1696,7 +1696,7 @@
$( cat $TMPERRMSG )
-Next rotation will be performed approximatively on $date_next.
+Next rotation will be performed approximatively on $date_next.
If you don't correct this problem before this date rottlog will send
same error message next time it will try to manage this logfile.
@@ -1709,7 +1709,7 @@
EOF
else
cat << EOF | $mail
-From: $fromuser
+From: $fromuser
To: $touser
Subject: Rot[t]Log $quale maintenance
@@ -1741,7 +1741,7 @@
EOF
fi
-
+
debecho "Sent mail from $fromuser to $touser"
}
@@ -1771,7 +1771,7 @@
fi
fi
debecho "Rotation not needed: $DIFFDATA < $2"
- return 0
+ return 0
}
read_daily() {
@@ -1787,7 +1787,7 @@
debecho "Rotating daily logfiles"
read_and_do
fi
-
+
}
@@ -1817,7 +1817,7 @@
debecho "Rotating monthly logfiles"
read_and_do
fi
-
+
}
read_weekly() {
@@ -1834,7 +1834,7 @@
debecho "Rotating weekly logfiles"
read_and_do
fi
-
+
}
banner() {
@@ -2042,7 +2042,7 @@
summarize_loginfo () {
# ciclo tra daily, weekly, monthly
# quando trovo il file in uno di questi tre visualizzo le info ed esco
-
+
for quale in daily weekly monthly; do
if [ -e $MAINPATH/$quale ]; then
debecho "Searching in $quale conffile"
@@ -2054,7 +2054,7 @@
checkrc () {
while [ $# -ne 0 ]; do
if [ ! -e $MAINPATH/$1 ]; then
- echo "WARNING: $1 file does'nt exist!"
+ echo "WARNING: $1 file doesn't exist!"
else
echo "==========================================================================="
echo "Checking $1 configuration file..."
@@ -2126,7 +2126,7 @@
rctocheck="$rctocheck daily"
;;
all)
- rctocheck="weekly monthly daily"
+ rctocheck="weekly monthly daily"
;;
*)
echo "Invalid option to checkrc: $1"
@@ -2135,9 +2135,9 @@
esac
shift
done
- checkrc $rctocheck
+ checkrc $rctocheck
;;
- #--without-scripts)
+ #--without-scripts)
# GLOBAL_DISABLE_SCRIPT=1
# ;;
--force)
@@ -2187,8 +2187,7 @@
done
[ -z "$DONTEXIT" ] && exit
fi
-
+
read_daily
read_weekly
read_monthly
-
--------------050605060409060103010508--
>From address@hidden Thu Sep 19 16:00:11 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17s7T9-0001hB-00
for address@hidden; Thu, 19 Sep 2002 16:00:11 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17s7T7-0001gs-00
for address@hidden; Thu, 19 Sep 2002 16:00:10 -0400
Received: from [62.98.178.175] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17s7T6-0001gg-00
for address@hidden; Thu, 19 Sep 2002 16:00:09 -0400
Received: (qmail 1917 invoked by uid 7808); 19 Sep 2002 19:59:29 -0000
Date: Thu, 19 Sep 2002 21:59:29 +0200
From: address@hidden
To: address@hidden
Message-ID:
Mail-Followup-To: address@hidden,
address@hidden
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Subject: [Rottlog-develop] Imported CVS
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
Hi all!
I've uploaded my codes in CVS tree on savannah.org!
--
Saluti,
Stefano
>From address@hidden Sat Oct 05 11:52:34 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 17xrD7-00047m-00
for address@hidden; Sat, 05 Oct 2002 11:51:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 17xrCz-0003wP-00
for address@hidden; Sat, 05 Oct 2002 11:51:13 -0400
Received: from [62.98.251.63] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 17xrBs-0001Fy-00
for address@hidden; Sat, 05 Oct 2002 11:50:05 -0400
Received: (qmail 2575 invoked by uid 7808); 5 Oct 2002 15:29:48 -0000
Date: Sat, 5 Oct 2002 17:29:48 +0200
From: address@hidden
To: address@hidden
Message-ID:
Mail-Followup-To: address@hidden,
address@hidden
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Subject: [Rottlog-develop] Improvements to period parameter
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
In CVS version of period.sh we can see a new version of "period" parameter.
I've added use of + operator to specify a list of days or months:
sep+nov+dec = septemper OR november OR december
So we can use a period like:
sep+nov+dec 22:00, !sep+nov+dec 01:00
That is more compact than:
sep 22:00, nov 22:00, dec 22:00, !sep !nov !dec 01:00
I'm very happy of what I've done :-)
More: now we can use more than one range in same period definition:
mon-fri jun-aug 22:00, !jun-aug 01:00
:-)
--
Saluti,
Stefano
>From address@hidden Sat Oct 19 15:59:27 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 182zkt-0001il-00
for address@hidden; Sat, 19 Oct 2002 15:59:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 182zkr-0001iL-00
for address@hidden; Sat, 19 Oct 2002 15:59:26 -0400
Received: from [62.98.136.158] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 182zkq-0001gc-00
for address@hidden; Sat, 19 Oct 2002 15:59:25 -0400
Received: (qmail 773 invoked by uid 7808); 19 Oct 2002 07:58:44 -0000
Date: Sat, 19 Oct 2002 09:58:44 +0200
From: address@hidden
To: address@hidden
Message-ID:
Mail-Followup-To: address@hidden,
address@hidden
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Subject: [Rottlog-develop] mailopt parameter
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
Hi All!
I've added mailopt parameter to better handle mail messages to
administrator. What about it? It's useful for someone?
In statistical message (it's not still implemented) I should to add:
1) Total execution time of rottlog
2) CPU usage
3) Number of logs handled (divided by category monthly, weekly, daily,
custom)
4) Number of bytes freed
Someone needs some other informations?
--
Stefano.
----------------------------------------------------------------------
Stefano Falsetto address@hidden
http://spazioweb.inwind.it/stefko5
Rot[t]Log home page: http://www.nongnu.org/rottlog
>From address@hidden Mon Oct 21 11:04:01 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 183e65-000485-00
for address@hidden; Mon, 21 Oct 2002 11:04:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 183e63-00043Z-00
for address@hidden; Mon, 21 Oct 2002 11:04:00 -0400
Received: from hunt.turners.com ([198.31.90.10] helo=turners.com)
by monty-python.gnu.org with esmtp (Exim 4.10)
id 183e62-00041K-00
for address@hidden; Mon, 21 Oct 2002 11:03:58 -0400
Received: from [192.168.168.16] (192.168.168.16) by turners.com with ESMTP
(Eudora Internet Mail Server 3.1.3) for ;
Mon, 21 Oct 2002 08:03:59 -0700
User-Agent: Microsoft-Entourage/9.0.2.4011
Date: Mon, 21 Oct 2002 08:04:28 -0700
From: Jeff Grossman
To:
Message-ID:
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Subject: [Rottlog-develop] Install Problem
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
I am trying to install Rottlog-0.51alpha onto a Mac OS X 10.1.5 system.
When I run the install.sh script, I get the following output:
[corp1:/temp/rottlog-0.51alpha] root# ./install.sh
./install.sh: Command not found.
[corp1:/temp/rottlog-0.51alpha] root#
Any ideas?
Thanks,
Jeff
--
Jeff Grossman (address@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
>From address@hidden Tue Oct 22 12:04:00 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 1841Vg-0007Zz-00
for address@hidden; Tue, 22 Oct 2002 12:04:00 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 1841Ve-0007ZP-00
for address@hidden; Tue, 22 Oct 2002 12:03:59 -0400
Received: from hunt.turners.com ([198.31.90.10] helo=turners.com)
by monty-python.gnu.org with esmtp (Exim 4.10)
id 1841Vd-0007ZI-00
for address@hidden; Tue, 22 Oct 2002 12:03:57 -0400
Received: from [192.168.168.16] (192.168.168.16) by turners.com with ESMTP
(Eudora Internet Mail Server 3.1.3) for ;
Tue, 22 Oct 2002 09:03:55 -0700
User-Agent: Microsoft-Entourage/9.0.2.4011
Date: Tue, 22 Oct 2002 09:04:27 -0700
Subject: Re: [Rottlog-develop] Install Problem
From: Jeff Grossman
To:
Message-ID:
In-Reply-To:
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
on 10/22/02 8:09 AM, address@hidden at address@hidden wrote:
> Ciao Jeff Grossman,
> il giorno Mon, Oct 21, 2002 at 08:04:28AM -0700 hai scritto:
>
>> I am trying to install Rottlog-0.51alpha onto a Mac OS X 10.1.5 system.
>> When I run the install.sh script, I get the following output:
>>
>> [corp1:/temp/rottlog-0.51alpha] root# ./install.sh
>> ./install.sh: Command not found.
>> [corp1:/temp/rottlog-0.51alpha] root#
>>
>> Any ideas?
> Yes. It doesn't find bash executable. Try:
> which bash
>
> And you will see that it is different from /bin/bash. In that case you must
> to change first line of install.sh rottlog and virottrc from this:
> #!/bin/bash
>
> to:
> #!
>
> Please let me to know if that works for you. I will add something to the
> package...
>
Well, that could be a problem. It does not appear I even have bash
installed, or at least in the path. But, it does have sh in /usr/sh.
Should I change it to sh or try and find if bash is really installed?
I just tried a find for bash, and it does not exist in my computer at all.
Jeff
--
Jeff Grossman (address@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
>From address@hidden Tue Oct 22 15:56:40 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 18458q-0007Mz-00
for address@hidden; Tue, 22 Oct 2002 15:56:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 18458m-0007EF-00
for address@hidden; Tue, 22 Oct 2002 15:56:39 -0400
Received: from [62.98.140.3] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 18458h-0006D7-00
for address@hidden; Tue, 22 Oct 2002 15:56:33 -0400
Received: (qmail 9214 invoked by uid 7808); 22 Oct 2002 19:51:18 -0000
Date: Tue, 22 Oct 2002 21:51:18 +0200
From: address@hidden
To: address@hidden
Subject: Re: [Rottlog-develop] Install Problem
Message-ID:
Mail-Followup-To: address@hidden, address@hidden
References:
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: ; from address@hidden on Tue, Oct 22, 2002 at 09:04:27AM -0700
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
Ciao Jeff Grossman,
il giorno Tue, Oct 22, 2002 at 09:04:27AM -0700 hai scritto:
> >> [corp1:/temp/rottlog-0.51alpha] root# ./install.sh
> >> ./install.sh: Command not found.
> > Yes. It doesn't find bash executable. Try:
> Well, that could be a problem. It does not appear I even have bash
> installed, or at least in the path. But, it does have sh in /usr/sh.
If you try:
sh -version
What is the reponse?
> Should I change it to sh or try and find if bash is really installed?
Yes, you can try but I think that you will find many problems: at the moment
Rot[t]Log is compatible with BAsh 2.x. But I'm interested to port it to sh.
So:
- first step is to change /bin/bash to /usr/sh
- second is to run:
sh -x install.sh 2>rottdebug.shx
- third is to send me rottdebug.shx :-)
> I just tried a find for bash, and it does not exist in my computer at all.
I think that you will not have problems downloading it and installing on
your box...
This sort of problems I think will be avoided when version 2 will be all
wrote in C...
--
Stefano.
----------------------------------------------------------------------
Stefano Falsetto address@hidden
http://spazioweb.inwind.it/stefko5
Rot[t]Log home page: http://www.nongnu.org/rottlog
>From address@hidden Tue Oct 22 16:16:38 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 1845S9-0006KY-00
for address@hidden; Tue, 22 Oct 2002 16:16:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 1845S7-0006Fp-00
for address@hidden; Tue, 22 Oct 2002 16:16:36 -0400
Received: from hunt.turners.com ([198.31.90.10] helo=turners.com)
by monty-python.gnu.org with esmtp (Exim 4.10)
id 1845RP-00065H-00
for address@hidden; Tue, 22 Oct 2002 16:15:52 -0400
Received: from [192.168.168.16] (192.168.168.16) by turners.com with ESMTP
(Eudora Internet Mail Server 3.1.3) for ;
Tue, 22 Oct 2002 13:15:51 -0700
User-Agent: Microsoft-Entourage/9.0.2.4011
Date: Tue, 22 Oct 2002 13:16:22 -0700
Subject: Re: [Rottlog-develop] Install Problem
From: Jeff Grossman
To:
Message-ID:
In-Reply-To:
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
on 10/22/02 12:51 PM, address@hidden at address@hidden wrote:
> Ciao Jeff Grossman,
> il giorno Tue, Oct 22, 2002 at 09:04:27AM -0700 hai scritto:
>
>>>> [corp1:/temp/rottlog-0.51alpha] root# ./install.sh
>>>> ./install.sh: Command not found.
>>> Yes. It doesn't find bash executable. Try:
>> Well, that could be a problem. It does not appear I even have bash
>> installed, or at least in the path. But, it does have sh in /usr/sh.
> If you try:
> sh -version
> What is the reponse?
>
That does not work. I checked the man page for sh, and there does not
appear to be a version switch.
>> Should I change it to sh or try and find if bash is really installed?
> Yes, you can try but I think that you will find many problems: at the moment
> Rot[t]Log is compatible with BAsh 2.x. But I'm interested to port it to sh.
> So:
> - first step is to change /bin/bash to /usr/sh
> - second is to run:
> sh -x install.sh 2>rottdebug.shx
> - third is to send me rottdebug.shx :-)
>
It died. I am sending you the file in a separate e-mail.
>> I just tried a find for bash, and it does not exist in my computer at all.
> I think that you will not have problems downloading it and installing on
> your box...
>
>
> This sort of problems I think will be avoided when version 2 will be all
> wrote in C...
Thanks,
Jeff
--
Jeff Grossman (address@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
>From address@hidden Thu Oct 24 16:12:12 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 184oKy-0000bH-00
for address@hidden; Thu, 24 Oct 2002 16:12:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 184oKu-0000Wj-00
for address@hidden; Thu, 24 Oct 2002 16:12:10 -0400
Received: from [62.98.246.163] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 184oKt-0000Uh-00
for address@hidden; Thu, 24 Oct 2002 16:12:07 -0400
Received: (qmail 12192 invoked by uid 7808); 24 Oct 2002 20:11:13 -0000
Date: Thu, 24 Oct 2002 22:11:13 +0200
From: address@hidden
To: Jeff Grossman
Cc: address@hidden
Subject: Re: [Rottlog-develop] Install Problem
Message-ID:
Mail-Followup-To: address@hidden, Jeff Grossman ,
address@hidden
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="Dxnq1zWXvFF0Q93v"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: ; from address@hidden on Thu, Oct 24, 2002 at 12:11:02PM -0700
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Ciao Jeff Grossman,
il giorno Thu, Oct 24, 2002 at 12:11:02PM -0700 hai scritto:
> Sorry this has taken so long. But, here is a copy of the man page for sed.
I've read man page and I think I was wrong... That's most probably a silly
quoting problem...
Please apply this patch to install.sh file and let me to know if it works.
--
Saluti,
Stefano
--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch_rottinst.txt"
--- install.sh Mon Oct 14 17:45:37 2002
+++ tmp/install-X.sh Thu Oct 24 22:08:00 2002
@@ -74,8 +74,8 @@
esc_MAINPATH=${ROTT_ETCDIR//\//\\/}
esc_STATPATH=${ROTT_STATPATH//\//\\/}
-sed -e s/^MAINPATH=.*/MAINPATH=\"$esc_MAINPATH\"/ \
- -e s/^STATPATH=.*/STATPATH=\"$esc_STATPATH\"/ rottlog >newrottlog
+sed -e s/^MAINPATH=.*/MAINPATH=\'$esc_MAINPATH\'/ \
+ -e s/^STATPATH=.*/STATPATH=\'$esc_STATPATH\'/ rottlog >newrottlog
if [ ! -s newrottlog ]; then
echo "Error using sed to modify rottlog!!"
echo "Please send to address@hidden an e-mail with as much as possible"
@@ -85,7 +85,7 @@
else
mv newrottlog rottlog
fi
-sed -e s/^MAINPATH=.*/MAINPATH=\"$esc_MAINPATH\"/ virottrc >newvirottrc
+sed -e s/^MAINPATH=.*/MAINPATH=\'$esc_MAINPATH\'/ virottrc >newvirottrc
if [ ! -s newvirottrc ]; then
echo "Error using sed to modify virottrc!!"
echo "Please send to address@hidden an e-mail with as much as possible"
--Dxnq1zWXvFF0Q93v--
>From address@hidden Thu Oct 24 16:34:20 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 184ogO-00077e-00
for address@hidden; Thu, 24 Oct 2002 16:34:20 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 184ogM-00077E-00
for address@hidden; Thu, 24 Oct 2002 16:34:19 -0400
Received: from hunt.turners.com ([198.31.90.10] helo=turners.com)
by monty-python.gnu.org with esmtp (Exim 4.10)
id 184ogL-00075c-00
for address@hidden; Thu, 24 Oct 2002 16:34:18 -0400
Received: from [192.168.168.16] (192.168.168.16) by turners.com with ESMTP
(Eudora Internet Mail Server 3.1.3) for ;
Thu, 24 Oct 2002 13:34:21 -0700
User-Agent: Microsoft-Entourage/9.0.2.4011
Date: Thu, 24 Oct 2002 13:34:49 -0700
Subject: Re: [Rottlog-develop] Install Problem
From: Jeff Grossman
To:
Message-ID:
In-Reply-To:
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
on 10/24/02 1:11 PM, address@hidden at address@hidden wrote:
> Ciao Jeff Grossman,
> il giorno Thu, Oct 24, 2002 at 12:11:02PM -0700 hai scritto:
>
>> Sorry this has taken so long. But, here is a copy of the man page for sed.
>
> I've read man page and I think I was wrong... That's most probably a silly
> quoting problem...
> Please apply this patch to install.sh file and let me to know if it works.
>
A little better.
[corp1:/temp/rottlog-0.51alpha] root# ./install.sh
Install script for Rot[t]Log v.0.51alpha
Checking for sed... Done
Checking for awk...Done
Checking for grep...Done
Checking for util-linuxUpdating bash codes...
sed: 1: "s/^MAINPATH=.*/MAINPATH ...": bad flag in substitute command: 'e'
Error using sed to modify rottlog!!
Please send to address@hidden an e-mail with as much as possible
detailed information about error messages and you environnement.
I'll try to solve this problem as soon as possible. Thanks.
Jeff
--
Jeff Grossman (address@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
>From address@hidden Thu Oct 24 16:36:42 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 184oig-0001lb-00
for address@hidden; Thu, 24 Oct 2002 16:36:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 184oid-0001iG-00
for address@hidden; Thu, 24 Oct 2002 16:36:41 -0400
Received: from [62.98.181.20] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 184oiY-0001XM-00
for address@hidden; Thu, 24 Oct 2002 16:36:37 -0400
Received: (qmail 12475 invoked by uid 7808); 24 Oct 2002 20:34:59 -0000
Date: Thu, 24 Oct 2002 22:34:58 +0200
From: address@hidden
To: Jeff Grossman
Cc: address@hidden
Subject: Re: [Rottlog-develop] Install Problem
Message-ID:
Mail-Followup-To: address@hidden, Jeff Grossman ,
address@hidden
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="G4iJoqBmSsgzjUCe"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: ; from address@hidden on Thu, Oct 24, 2002 at 12:11:02PM -0700
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Ciao Jeff Grossman,
il giorno Thu, Oct 24, 2002 at 12:11:02PM -0700 hai scritto:
> Sorry this has taken so long. But, here is a copy of the man page for sed.
Oooops I've send to you a bad patch. This is the correct file. I apologize
:-(
--
Saluti,
Stefano
--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="install-patch.txt"
--- install.sh Mon Oct 14 17:45:37 2002
+++ tmp/install-X.sh Thu Oct 24 22:32:25 2002
@@ -74,8 +74,8 @@
esc_MAINPATH=${ROTT_ETCDIR//\//\\/}
esc_STATPATH=${ROTT_STATPATH//\//\\/}
-sed -e s/^MAINPATH=.*/MAINPATH=\"$esc_MAINPATH\"/ \
- -e s/^STATPATH=.*/STATPATH=\"$esc_STATPATH\"/ rottlog >newrottlog
+sed -e "s/^MAINPATH=.*/MAINPATH=\'$esc_MAINPATH\'/" \
+ -e "s/^STATPATH=.*/STATPATH=\'$esc_STATPATH\'/" rottlog >newrottlog
if [ ! -s newrottlog ]; then
echo "Error using sed to modify rottlog!!"
echo "Please send to address@hidden an e-mail with as much as possible"
@@ -85,7 +85,7 @@
else
mv newrottlog rottlog
fi
-sed -e s/^MAINPATH=.*/MAINPATH=\"$esc_MAINPATH\"/ virottrc >newvirottrc
+sed -e "s/^MAINPATH=.*/MAINPATH=\'$esc_MAINPATH\'/" virottrc >newvirottrc
if [ ! -s newvirottrc ]; then
echo "Error using sed to modify virottrc!!"
echo "Please send to address@hidden an e-mail with as much as possible"
@@ -101,8 +101,8 @@
posnum=${#M}
posnum=$[ posnum - 1 ]
number=${M:posnum}
- sed -e s/address@hidden/$esc_MAINPATH/ \
- -e s/address@hidden/$esc_STATPATH/ $M > new-manual-$M
+ sed -e "s/address@hidden/$esc_MAINPATH/" \
+ -e "s/address@hidden/$esc_STATPATH/" $M > new-manual-$M
if [ ! -s new-manual-$M ]; then
echo "Error using sed to modify $M!!"
echo "Please send to address@hidden an e-mail with as much as possible"
--G4iJoqBmSsgzjUCe--
>From address@hidden Thu Oct 24 16:44:51 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 184oqY-0002Gx-00
for address@hidden; Thu, 24 Oct 2002 16:44:50 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 184oqW-0002DX-00
for address@hidden; Thu, 24 Oct 2002 16:44:50 -0400
Received: from hunt.turners.com ([198.31.90.10] helo=turners.com)
by monty-python.gnu.org with esmtp (Exim 4.10)
id 184oqW-0002DS-00
for address@hidden; Thu, 24 Oct 2002 16:44:48 -0400
Received: from [192.168.168.16] (192.168.168.16) by turners.com with ESMTP
(Eudora Internet Mail Server 3.1.3) for ;
Thu, 24 Oct 2002 13:44:53 -0700
User-Agent: Microsoft-Entourage/9.0.2.4011
Date: Thu, 24 Oct 2002 13:45:20 -0700
Subject: Re: [Rottlog-develop] Install Problem
From: Jeff Grossman
To:
Message-ID:
In-Reply-To:
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
on 10/24/02 1:34 PM, address@hidden at address@hidden wrote:
> Ciao Jeff Grossman,
> il giorno Thu, Oct 24, 2002 at 12:11:02PM -0700 hai scritto:
>
>> Sorry this has taken so long. But, here is a copy of the man page for sed.
> Oooops I've send to you a bad patch. This is the correct file. I apologize
> :-(
Will this install over my already patched version, or do I have to try a
fresh copy?
Jeff
--
Jeff Grossman (address@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
>From address@hidden Thu Oct 24 17:15:10 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 184pJt-0001XB-00
for address@hidden; Thu, 24 Oct 2002 17:15:09 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 184pJs-0001SW-00
for address@hidden; Thu, 24 Oct 2002 17:15:09 -0400
Received: from hunt.turners.com ([198.31.90.10] helo=turners.com)
by monty-python.gnu.org with esmtp (Exim 4.10)
id 184pJr-0001RK-00
for address@hidden; Thu, 24 Oct 2002 17:15:07 -0400
Received: from [192.168.168.16] (192.168.168.16) by turners.com with ESMTP
(Eudora Internet Mail Server 3.1.3) for ;
Thu, 24 Oct 2002 14:15:12 -0700
User-Agent: Microsoft-Entourage/9.0.2.4011
Date: Thu, 24 Oct 2002 14:15:37 -0700
Subject: Re: [Rottlog-develop] Install Problem
From: Jeff Grossman
To:
Message-ID:
In-Reply-To:
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: ,
List-Id: Help and hints to develop Rot[t]Log
List-Unsubscribe: ,
List-Archive:
on 10/24/02 1:34 PM, address@hidden at address@hidden wrote:
> Ciao Jeff Grossman,
> il giorno Thu, Oct 24, 2002 at 12:11:02PM -0700 hai scritto:
>
>> Sorry this has taken so long. But, here is a copy of the man page for sed.
> Oooops I've send to you a bad patch. This is the correct file. I apologize
> :-(
No, I think this is the same problem.
Install script for Rot[t]Log v.0.51alpha
Checking for sed... Done
Checking for awk...Done
Checking for grep...Done
Checking for util-linuxUpdating bash codes...
sed: 1: "s/^MAINPATH=.*/MAINPATH ...": bad flag in substitute command: 'e'
Error using sed to modify rottlog!!
Please send to address@hidden an e-mail with as much as possible
detailed information about error messages and you environnement.
I'll try to solve this problem as soon as possible. Thanks.
Jeff
--
Jeff Grossman (address@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
>From address@hidden Sat Oct 26 02:38:02 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10)
id 185KaA-0006U3-00
for address@hidden; Sat, 26 Oct 2002 02:38:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10)
id 185Ka8-0006Q0-00
for address@hidden; Sat, 26 Oct 2002 02:38:01 -0400
Received: from [62.98.168.200] (helo=cervellone.linux.ste)
by monty-python.gnu.org with smtp (Exim 4.10)
id 185Ka7-00061h-00
for address@hidden; Sat, 26 Oct 2002 02:37:59 -0400
Received: (qmail 1097 invoked by uid 7808); 25 Oct 2002 16:08:20 -0000
Date: Fri, 25 Oct 2002 18:08:20 +0200
From: address@hidden
To: address@hidden
Subject: Re: [Rottlog-develop] Install Problem
Message-ID:
Mail-Followup-To: address@hidden, address@hidden
References:
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: ; from address@hidden on Thu, Oct 24, 2002 at 02:15:37PM -0700
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help:
List-Post:
List-Subscribe: