Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] sending output to both screen and log file, how ?


On Thu, 2004-08-19 at 10:09, Shane MacPhillamy wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Instead of tee the following should work also:
> 
> echo "$now $0 executed for $DOMAIN on in $exectime sec"  1>&2 >>
> /var/log/awstats.log

OK. Now try and set up a centralised log host for all of the machines
the sysadm controls.

The syslog subsystem exists for good reasons, as does the "logger"
command.