Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Automating File Rotation

by sintadil (Pilgrim)
on Sep 14, 2004 at 19:18 UTC ( [id://390952]=note: print w/replies, xml ) Need Help??


in reply to Automating File Rotation

Does anyone have any idea how I could create a new logfile every n minutes?

Most decent Unix systems provide you with a newsyslog utility which runs from cron or a workalike which does exactly what you want, and often much more. Any decent implementation isn't limited to working with syslog logfiles.

If you're running on Windows or something ne Unix ... well ... I honestly don't know. You'd need to post more about what sort of logfile you're rotating, any specifics about rotating it, etc. before we could be more detailed in our answers.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-24 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found