Re: Move files in 'order'

From: Doug Laidlaw (laidlaws_at_myaccess.com.au)
Date: 10/25/04


Date: Mon, 25 Oct 2004 16:17:00 +1000

Bill S. wrote:

> Awesome, thanks everyone for the pointers on this, I really appreciate
> it!!
>
> robertharvey@my-deja.com (Robert E A Harvey) wrote in message
> news:<5acbdcbf.0410241433.183652aa@posting.google.com>...
>> ziphem@hotmail.com (Bill S.) wrote in message
>> news:<21ee69a6.0410240741.47648fb0@posting.google.com>...
>> > Hi, I have a quick question about moving files in Redhat. I'm trying
>> > to get files moved in 'order', meaning that I want log.2 moved to
>> > log.3, then log .1 moved to log.2 and then log moved to log.1 ,
>> > specifically in that order.
>>
>> There is a script specifically for this, called logrotate.
>>
>> It should come with redhat, but if not then you can get it as an rpm
>> http://tinyurl.com/69h5d

If the relevant log files are in your log directory, I believe that you can
couple them to the existing logrotate, which does the same with all your
other log files, but I haven't had to find out how.

Doug. (using Mandrake.)

-- 
ICQ Number 178748389. Registered Linux User No. 277548.
It's not whether you win or lose.  It's where you place the blame.


Relevant Pages

  • Re: Size of wtmp files
    ... for logrotate to configure it the way you want. ... > a script to run 'last' repeatedly on zcatted versions of the rotated files, ... an attacker has full reign to edit the log files with impunity. ...
    (comp.os.linux.misc)
  • Re: Size of wtmp files
    ... >> SuSE 7.2 runs cron.daily, which among other things, rotates ... Not using logrotate - suse 7.2 simply used a script. ... an attacker has full reign to edit the log files with impunity. ...
    (comp.os.linux.misc)
  • Re: get the timestamp as a log filename
    ... Genti A. Hila wrote: ... > I have some log files that are saved from logrotate hourly. ... You may have to write a script to run as part of the logrotate ...
    (Fedora)
  • Re: How to to define the size of a file in scripting
    ... I am writing a small script for log files ... compress $logtest ... I don't know about logrotate. ...
    (comp.unix.shell)
  • Re: The Holy Grail of Web Access
    ... Bill ... > 3) set up a privilege set which is intended for this class of user ... > the logged in account = the account marked for that record ... > just use the privilege set in the script below. ...
    (comp.databases.filemaker)