Re: How to remove a single line from a flat file



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.

.



Relevant Pages

  • RE: file i/o in multithreaded apps
    ... I'm seeing gaps in the log file using the code I posted - ... the output to a file and that doesn't seem to be missing lines. ... what to lock. ... Get notification to my posts through email? ...
    (microsoft.public.dotnet.framework)
  • Re: Security privelege(s) missing!
    ... I can't recall the log file or where it is located, ... 1)The restore tab is missing in system properties. ... > the Security log in event viewer I get "Unable to complete the operation ... > (What could be the solution to the security problem? ...
    (microsoft.public.windowsxp.security_admin)
  • Re: sp3 update full file
    ... the excerpt from your log file is missing the piece of information ... needed to understand what triggered the request for the source. ... > potential solutions to this problem, ...
    (microsoft.public.officeupdate)
  • Re: VMS- submit queue only runs once
    ... You're missing the fact that we are not psychic. ... then please post relevant portions of it. ... with your SUBMIT command to avoid automatic deletion of the log file. ...
    (comp.os.vms)
  • Re: Abnormal Thread Termination
    ... event and report it to your log file to make sure there isn't aren't ... any exceptions your're missing. ...
    (microsoft.public.dotnet.framework.clr)

Loading