Re: How to remove a single line from a flat file
- From: Eric <eric@xxxxxxxxxxxxxxxxx>
- Date: Sat, 19 May 2007 13:20:10 +0100
On Fri, 18 May 2007 10:57:00 -0700, Darren New <dnew@xxxxxxxxxx>
wrote:
Agreed. I'd be happier if Linux had non-suckful IPC too. :-)
Whatever that means. Want to bet that if you provide a high-level
definition of what you want then loads of people will argue about it?
But the fact that if you want to (say) edit the syslog file you have to
turn off syslog (so it's not writing to the file while you edit it),
that tells me you're missing something in the kernel.
If you need to edit it, it's not a log file. The mechanism is fine for
what it needs to do. If you're talking about keeping summary instead
of detail, see below.
That you have to
actually have the web server (for example) start using a new log file so
you can rotate the old log records to a different partition says there's
something wrong there, to me.
So you want to allow infinite log files? Anything that writes a log
should have a way of splitting "old" from "current" - then you can do
what you like with the "old" - summarize, or even edit it!
That you need lock files so sendmail
doesn't clobber something while you're reading your mail with a MUA says
there's something missing there.
Missing? If two processes need to change the same thing you need a
lock (type unspecified). Don't mistake an imperfect implementation for
evidence either way - whatever mechanisms are provided can be misused.
When you actually say "what are all the work-arounds I use to account
for the crummy file system", you begin to realize the work-arounds are
so common you don't even notice them any more.
If you think "work-around" you will do the wrong thing. Unix/Linux is
a low-level platform. If you need something that is not there you have
to find it or create it. Most people don't look very far, and whether
they have looked properly or not those who create something don't
usually make much effort to make it separable so that it could be
re-used.
.
- Follow-Ups:
- References:
- Re: How to remove a single line from a flat file
- From: Larry W. Virden
- Re: How to remove a single line from a flat file
- From: Atte Kojo
- Re: How to remove a single line from a flat file
- From: Larry W. Virden
- Re: How to remove a single line from a flat file
- From: Darren New
- Re: How to remove a single line from a flat file
- From: billposer
- Re: How to remove a single line from a flat file
- From: Donal K. Fellows
- Re: How to remove a single line from a flat file
- From: Darren New
- Re: How to remove a single line from a flat file
- From: Atte Kojo
- Re: How to remove a single line from a flat file
- From: Darren New
- Re: How to remove a single line from a flat file
- Prev by Date: Re: Bootable Tcl-Script
- Next by Date: Re: Expect scripting
- Previous by thread: Re: How to remove a single line from a flat file
- Next by thread: Re: How to remove a single line from a flat file (Still very off-topic.)
- Index(es):
Relevant Pages
|
Loading