[SLUG] ComputerBank Meeting Sat 20th?

2007-01-15 Thread Grant Parnell - EverythingLinux
Apologies if you receive this twice, I've bcc'd the LCA delegates mailing 
list.


ComputerBank NSW and ComputerBank Sydney are two organisations in need of 
repair. Their purpose is to take old computers and either use 
environmentally friendly recycling or re-task them and give them to 
community organisations (or individuals) who would not otherwise be able 
to afford a computer. These organisations are suffering from lack of 
volunteers and a proper committee, funds, premises and general 
organisation.


I have proposed a combined meeting for the 20th for both organisations. I 
originally thought there was still some LCA2007 activities happening on 
the Saturday morning. Now there's nothing. So I suggest we go somewhere 
central to all who'd like to attend. If you'd like to attend email me 
and/or update the LCA wiki http://lca2007.linux.org.au/ComputerBankSydney


Needed to discuss are

a) who's going to be treasurer (for CB NSW) and
b) either paying rent for some warehouse space at ELX or taking over the lease or finding 
somewhere else. Roughly 1/3 of the donated equipment is in the ELX 
warehouse occupying roughly 10% of the floor space. ELX pays over $30K 
per annum for the warehouse rent and frankly NEEDS something to help pay 
the rent (other suggestions welcome in private emails).

c) followup with meeting held at Penrith council on December 7th.

SMS 0408 686 201 7am-10pm only (I use the phone for an alarm clock too).

--
---GRiP---
Grant Parnell - senior LPIC-1 certified consultant
Linux User #281066 at http://counter.li.org (Linux Counter)
EverythingLinux services - the consultant's backup  tech support.
Web: http://www.everythinglinux.com.au/support.php
We're also busybits.com.au and linuxhelp.com.au and elx.com.au.
Phone 02 8756 3522 to book service or discuss your needs.

ELX or its employees participate in the following:-
OSIA (Open Source Industry Australia) - http://www.osia.net.au
AUUG (Australian Unix Users Group) - http://www.auug.org.au
SLUG (Sydney Linux Users Group) - http://www.slug.org.au
LA (Linux Australia) - http://www.linux.org.au
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] tail and rotated log files

2007-01-15 Thread Peter Hardy
I have a script that uses `tail -f --max-unchanged-stats=5` to follow a
log file. The way I read the man page, --max-unchanged-stats will cause
tail to close and reopen the given file if it hasn't changed after 5
iterations. But after logrotate rotates the logfile, tail keeps watching
the old file, and doesn't seem to open the new one. So:

- Am I missing something here? The man page doesn't mention any, but is
there I signal I can throw tail that'll make it reopen its file?
- Is there a better way, short of application-specific trickery, to keep
an eye on a log file? I'm considering having syslog log to a named pipe
as well and have my script read from that. But I'd like to hear other
suggestions for feeding a shell script from a system log.

-- 
Pete

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] tail and rotated log files

2007-01-15 Thread Michael Chesterton
Peter Hardy [EMAIL PROTECTED] writes:

 I have a script that uses `tail -f --max-unchanged-stats=5` to follow a
 log file. The way I read the man page, --max-unchanged-stats will cause
 tail to close and reopen the given file if it hasn't changed after 5
 iterations. But after logrotate rotates the logfile, tail keeps watching
 the old file, and doesn't seem to open the new one. So:

 - Am I missing something here? The man page doesn't mention any, but is
 there I signal I can throw tail that'll make it reopen its file?
 - Is there a better way, short of application-specific trickery, to keep
 an eye on a log file? I'm considering having syslog log to a named pipe
 as well and have my script read from that. But I'd like to hear other
 suggestions for feeding a shell script from a system log.


According to my man page, you want -F or --follow=name --retry

 
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] tail and rotated log files

2007-01-15 Thread Tony Sceats

Hey Peter,

sounds like you want

tail -F log
or
tail --follow=name --retry log

never used the max-unchanged-stats argument though - maybe it's used to
delay the retry? wtf is an iteration in tail anyway? 5 poll's on the file?!

On 1/15/07, Peter Hardy [EMAIL PROTECTED] wrote:


I have a script that uses `tail -f --max-unchanged-stats=5` to follow a
log file. The way I read the man page, --max-unchanged-stats will cause
tail to close and reopen the given file if it hasn't changed after 5
iterations. But after logrotate rotates the logfile, tail keeps watching
the old file, and doesn't seem to open the new one. So:

- Am I missing something here? The man page doesn't mention any, but is
there I signal I can throw tail that'll make it reopen its file?
- Is there a better way, short of application-specific trickery, to keep
an eye on a log file? I'm considering having syslog log to a named pipe
as well and have my script read from that. But I'd like to hear other
suggestions for feeding a shell script from a system log.

--
Pete

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html