I want to have a permanent file created - and limit the size that this file can grow.. I want a circular file..
ie max size of file is 10 mb.. and if any new data written to file the oldest data removed..
How can I do this?
I am on solaris 9 x86
I want to have a permanent file created - and limit the size that this file can grow.. I want a circular file..
ie max size of file is 10 mb.. and if any new data written to file the oldest data removed..
How can I do this?
I am on solaris 9 x86
Which kind of data do you want to save in this file ?
just ascii... it will be a log file for errors.... I will log ascii readable text for users...
So any errors from jobs will always be logged here - but I want this to be circular - so the older entries are eventually removed when new entries are being written...
is this possible?
hmmmn - I think I have my answer..
I set this in my .cshrc file
limit filesize 4m ## filesize limit to 4 megabytes
I guess this will limit any file I create as this user to 4m maximum..
Any way to just apply this limit to one file?