3

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

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Özzesh
  • 3,549
  • 8
  • 23
  • 25

1 Answers1

3

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

slm
  • 363,520
  • 117
  • 767
  • 871