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

Re: [cobalt-users] [RAQ4i] /var/log/maillog >> maillog.html [Possible OFF TOPIC]



How about a symbolic link:

ln -s /var/log/maillog /home/sites/sitex/web/maillog/index.htm
then browse to [domain of sitex]/mailog

this way the log still rotates as normal and there's no extra file to grow
too large.

Probably still a good idea to put a .htaccess in the directory, mainly to
stop spambots etc scraping email addresses from the maillog.

HTH

--
Eddie


----- Original Message -----
From: "Tim Dunn" <tdunn@xxxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, August 15, 2002 6:13 PM
Subject: Re: [cobalt-users] [RAQ4i] /var/log/maillog >> maillog.html
[Possible OFF TOPIC]


> >
> >
> > OFF TOPIC POST (at a guess)
> > I, as adminstrator
> > tail -f /var/log/maillog
>
> nohup tail -f /var/maillog > /some/dir/maillog.txt &
>
> Make sure to change perms on /tmp/maillog.txt so the web server can
> read it.  Make sure to put an .htaccess on /some/dir so only the
> authorized machine(s) and username(s) can read it.  Log rotation
> won't work, so make sure check disk usage and tell them how to kill
> it when it overgrows.
>
> Need some *nix shell flunkies?
>
> tim
>
>
> --
> Sysadmin Rule #14: If it's not on fire, it's a software issue.
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>