Re: sadc output to a circular file of given size?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Alan McKay wrote:
>> You could create one, use dd to create an empty file that is the
>> size you want, format it with mke2fs and mount it via loopback
>
> Would it automatically do the loop thing though?  i.e. overwrite the
> oldest data in the file?

No but you could be sure you'd never fill your normal
file system up.

If you want to automatically overwrite the oldest file come up
with a naming/numbering scheme for the files and iterate through
them and then repeat.

nate

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux