On Tue, Jul 15, 2003 at 02:39:18PM -0400, Perrin Harkins wrote: > On Tue, 2003-07-15 at 14:27, Jez Hancock wrote: > > Much obliged, that does look to be something I could use. Reminds me I > > need to be locking the logfile as well ;) > > Actually, if you are just printing one short line I think you'll be fine > without locking on unix systems. See the FAQ: > http://www.perldoc.com/perl5.8.0/pod/perlfaq5.html#All-I-want-to-do-is-append-a-small-amount-of-text-to-the-end-of-a-file.--Do-I-still-have-to-use-locking- Ok thanks Perrin. The script is actually running nicely as it is right now on a server hosting 50 or so domains, although admittedly it's not taking a massive number of hits (10,000 or so per day).
Does anyone how one could log errorlog entries in a similar manner to the script above - ie pipe the errorlog to a script which appends one copy of the error entry to a main error logfile and another copy to the virtual host's error logfile? -- Jez http://www.munk.nu/