Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Re^2: removing lines from a file

by rev_1318 (Chaplain)
on Jun 22, 2005 at 21:15 UTC ( #469183=note: print w/replies, xml ) Need Help??

in reply to Re: removing lines from a file
in thread removing lines from a file

Writing to a fifo should be no problem. For the application, it's like writing to a ordinary file. But the log rotation is a good point. There you should be carefull indeed.


Replies are listed 'Best First'.
Re^3: removing lines from a file
by ministry (Scribe) on Jun 23, 2005 at 14:27 UTC
    The FIFO idea seems to be the best solution for me here. I can point my application to write to a FIFO pipe, and just disregard all lines I would have previously tried to remove. As far as the log rotation; it seems as though it would be as simple as a 'real-time' rotation. Meaning I would base the logfile output on the time/date stamp prefixing each of the incoming lines. Then create new files on the fly based on those metrics. Would an idea like this be the best solution for my problem?

    cheers, Ev

    Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://469183]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2023-12-07 23:25 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (33 votes). Check out past polls.