creating a file sliding window

R

Ryan

What I want to do is run tcpdump continuously in the background and dump
to a file. Then, while tcpdump is working, I'd like to grab arbitrary chunks
of the open dump file and parse pieces at the head of the file. After I'm
done parsing I'd like to delete them from the front of the file, creating
a sort of sliding window effect.

What would be the best way to do this?

-ryan
 
R

Ross Kendall Axe

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ryan wrote:
| What I want to do is run tcpdump continuously in the background and dump
| to a file. Then, while tcpdump is working, I'd like to grab arbitrary
chunks
| of the open dump file and parse pieces at the head of the file. After I'm
| done parsing I'd like to delete them from the front of the file, creating
| a sort of sliding window effect.
|
| What would be the best way to do this?
|
| -ryan


Please don't multipost. Also, this is off-topic in comp.lang.c

Ross

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAwbq69bR4xmappRARAot8AJ9eCi1XpR5kuEg75KmB3MlVZzV/TgCgl1Ae
vs28Y6CfncdlhHuo6ELNgrA=
=gegQ
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top