Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How to do a manual "logrotate" on a given file?

by ctilmes (Priest)
on Nov 24, 2009 at 13:28 UTC ( #809072=note: print w/replies, xml ) Need Help??


in reply to How to do a manual "logrotate" on a given file?

Check out logrotate. Usually installed on Linux systems by default.
  • Comment on Re: How to do a manual "logrotate" on a given file?

Replies are listed 'Best First'.
Re^2: How to do a manual "logrotate" on a given file?
by gmargo (Hermit) on Nov 24, 2009 at 16:42 UTC

    According to my SuSE Linux 8.2 Administration Guide, the logrotate program is provided.

    You don't necessarily need to use the system file /etc/logrotate.conf. You can instead use your own local config file, specific for your application, and just specify that config file on the command line. Personally, I would write a shell script (sorry, no perl) that runs from cron, which invokes logrotate and then does the copying you want. Run it just before the bosses get to work in the morning :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://809072]
help
Chatterbox?
[choroba]: just one of its angles, in fact
[LanX]: <|--
[choroba]: Reminds me of an old joke about an orchestra...
erix imagines that in a true Lancs accent
[choroba]: so a Czech orchestra rehearses a new piece by a German composer
LanX LOL of the day ... the Turkish Anonymous Alcoholics stopped their "No to alcohol" campaign for political reasons ...
LanX omg my browser is posting again on its own ...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-03-27 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.