Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I have tcpdump running as a background process, and I have routing daemon needing to analyses some of that output. What would be best for me is to have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2012
    Posts
    12

    Circular files in linux


    Hi,

    I have tcpdump running as a background process, and I have routing daemon needing to analyses some of that output. What would be best for me is to have a log file that tcpdump writes to, which the daemon can analyse when it needs to. However since this is all being done on very small computers, I need to be able to keep the file size to something like 100 - 200 lines as well as update it with new information from tcpdump.

    I have looked quite a bit for help on circular files, but I don't know how on earth I could go about creating one on my debian distro.

    Thanks

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    Have a look at the -W switch
    Code:
    man tcpdump
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Aug 2012
    Posts
    12
    Thanks Irithori!

    That was very helpful, however I find it writes the raw packet to the file, and I want the routing daemon to read plain ascii output from tcpdump, not the raw packet.

    Regards

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •