Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  1 Aug 2000 14:52:04 +0200 (CEST)
From:      Marc van Woerkom <marc.vanwoerkom@science-factory.com>
To:        support@succeedsystems.co.uk
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Detailed reporting ...
Message-ID:  <20000801125204.11AA61F63@nil.science-factory.com>
In-Reply-To: <000201bffb9c$56fdb240$3011fea9@accountsoffice> (support@succeedsystems.co.uk)
References:   <000201bffb9c$56fdb240$3011fea9@accountsoffice>

next in thread | previous in thread | raw e-mail | index | archive | help
> I am new to Cron but believe I can use this to schedule with little =
> trouble - my difficulty is what command to use or what program to =
> invoke/install to do the job.

Yep. Roughly speaking, once you figured out how to do the job
from the commandline you can tell crond to issue that command
at certain defined times. crond will run the command and email
you its output.

> I would like daily the following reports e-mail to me:
> 
> adduse
> maillog.0.gz (a zipped archive after log-file is turned-over)
> access log for the last 24 hours only (so I can see who is using =
> how-much bandwidth).

adduse (adduser?) might be covered by the scripts that do the
daily security reports. (Have a look at /etc/periodic for these matters)

maillog.0.gz you have to ASCII-fy (uuencode command or base64 encode
command from the mime package) - and either directly pipe that
output through mail

   mail user@host < `uuencode ..`

or let the output be captured by crond. Play a bit with that stuff
and you will know.

For the access log I would suggest a rotation scheme every 24 hours
and mail the complete thing, otherwise you have to figure how to
extract just the part of the log from today on.

Again, if you figured out how to do it in your shell, just
that as command for crond.

Regards,
Marc


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000801125204.11AA61F63>