[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Maillog



> "Edward Bishop" <eddie@xxxxxxxxxxxxxxxx> wrote:
> > 2. Can I make the RaQ maintain two copies of maillog, the normal one and
> > another one (which needn't rotate) somewhere under home/sites/home/web
(or
> > another web site directory) so that I can read it with a browser? Or can
> > anyone recommend a Perl script or similar which I can call from a web
page
> > and which will go and read maillog from its usual location and return it
> to
> > the browser as a text file?
>
> Make a symbolic link.
>
> ln -s /var/log/maillog /home/sites/home/web/maillog
>
> --
> Steve Werby
> President, Befriend Internet Services LLC
> http://www.befriend.com/

That's fantastic Steve - a beautifully elegant way to achieve exactly what I
wanted.
For anyone reading this in the archive later I'll add that you also need

chmod 644 /var/log/maillog

to allow the web browser to read the file.

Eddie