[comp.unix.questions] automatic dating of /var/adm/messages in SunOS

greg@eemips.tamu.edu (Greg Economides) (04/10/90)

In the SunOS manual, there is a reference made to making an entry in a 
crontab for updating /var/adm/messages each week.  In other words:

messages.3 --> messages.4
messages.2 --> messages.3
messages.1 --> messages.2
messages   --> messages.1
a new messages file is created.

I wrote a script which does this and put an entry in the appropriate crontab
so that the script is executed each week.  I have a feeling that this is
not what the reference in the manual was talking about.  It seemed to 
suggest that there exists a program to do this which should be executed
via crontab.  

I am running SunOS 4.0.2 on a 386i.  It seems that on Sun 3's and 4's this
updating is done by default, but not so with this set-up.  

Is my script unnecessary?

greg economides       System Administrator:  zadok.tamu.edu