automatic dating of /var/adm/messages in SunOS

Greg Economides greg at eemips.tamu.edu
Wed Apr 11 01:44:47 AEST 1990


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



More information about the Comp.unix.questions mailing list