Ben

 

URL: HYPERLINK "http://www.howtoforge.com/"www.howtoforge.com

 

Stu

 

   _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben Hayes
Sent: 29 November 2006 14:21
To: Peterborough LUG - No commercial posts
Subject: RE: [Peterboro] Log Control Script

 

Eron

 

What is the URL of the How to website that you were talking about at the
meeting last night?  Been banging my head trying to remember it........

 

Ben

 

   _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eron Smith
Sent: 27 November 2006 00:12
To: Peterborough LUG - No commercial posts
Subject: Re: [Peterboro] Log Control Script

Does anyone need a lift from the P'boro city area to the LUG on 28/11/2006?

 

I am in South Bretton area so I will assist anyone who needs a lift.

 

Eron ..........

----- Original Message ----- 

From: HYPERLINK "mailto:[EMAIL PROTECTED]"Malcolm Hunter 

To: HYPERLINK "mailto:[email protected]"Peterborough LUG - No
commercial posts 

Sent: 17 November 2006 11:04

Subject: Re: [Peterboro] Log Control Script

 


On Thu, November 16, 2006 9:57 pm, Stuart Clark wrote:
> Syslogd does the HUP thing, so a killall -HUP syslogd should be what you
> need.
>
> I would also suggest adjusting the order of your script, so that the log
> is moved, reopened (HUP) then compressed, as a log line sent to the
> still open log file during or after compression will probably break
> things.

I think you can get away with just nulling the messages file out after
cat'ing it through gzip:

cat /var/log/messages | gzip > /var/log/messages.gz
>/var/log/messages

The latter command starts with a '>' - this is the same as 'cat /dev/null
>'.

> Have you looked at "logrotate" which does all of the above, and is
> fairly standard?

Regards,
Malcolm
-- 
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

HYPERLINK
"http://i18n.kde.org/teams/info/en_GB"http://i18n.kde.org/teams/info/en_GB


_______________________________________________
Peterboro mailing list
HYPERLINK "mailto:[email protected]"[email protected]
HYPERLINK
"https://mailman.lug.org.uk/mailman/listinfo/peterboro"https://mailman.lug.o
rg.uk/mailman/listinfo/peterboro


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.19/555 - Release Date: 27/11/2006
18:09



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.19/555 - Release Date: 27/11/2006
18:09
 
_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to