I want to take a continuous dump file of particular size and after the dump reached it predefined size the new data should overwrite the file.
Help
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI want to take a continuous dump file of particular size and after the dump reached it predefined size the new data should overwrite the file.
Help
I think your options, without the -G
switch of tcpdump
are limited to the method discussed in this U&L Q&A titled: Keep log file size fixed without logrotate.
The issue you're going to run into is, that with the alternative methods, a kill -HUP ...
will need to be sent to tcpdump
to signal it that the file's been moved/removed,
I'm not sure tcpdump
is up to doing this, so I think your best option is to get a version of tcpdump
on the box with this feature, IMO