File: EXAMPLES

package info (click to toggle)
calamaris 2.8-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 152 kB
  • ctags: 16
  • sloc: perl: 1,555; sh: 47; makefile: 39
file content (32 lines) | stat: -rw-r--r-- 1,170 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
I want to give the 'audience' some examples for using Calamaris.

So if you build some Scripts, crontabs or else around Calamaris, please
mail and describe them to Calamaris@Cord.de.

I'll add them to this file. Thank You.


My (cord@Wunder-Nett.org) method:
-----------------------------------------------------------------------

squid.conf:
-----------------------------------------------------
[...]
logfile_rotate 7
[...]
-----------------------------------------------------

crontab:
-----------------------------------------------------
0 0 * * *	/usr/local/squid/bin/squid -k rotate
30 0 * * *	cat /var/log/squid/access.log.0 | nice -39 /usr/local/squid/bin/calamaris.pl -amH 'daily worf' |mail Squidmaster@Cord.de
0 3 * * 7	(cd /var/log/squid/; cat access.log.6 access.log.5 access.log.4 access.log.3 access.log.2 access.log.1 access.log.0) | nice -39 /usr/local/squid/bin/calamaris.pl -amH 'weekly worf' |mail Squidmaster@Cord.de
-----------------------------------------------------
-----------------------------------------------------------------------



Version of the EXAMPLES
-----------------------

$Id: EXAMPLES,v 2.1 1998/10/05 18:50:28 cord Exp $