i've got some problem with rotating files. Situation is next:
- one program like wireshark or vlc dumps all to one file, say netstream.bin
- If i mv netstream.bin to netstream.bin.rotate program will still write to netstream.bin.rotate .
- As it is stream dump, this file would became larger and larger
Is there any solution, how to rotate this files?
Something like FILO pseudo file:
mkfilo /tmp/stream.buffer
./scrtip/program.bin -o /tmp/stream.buffer
get_out_filo(stream.buffer) > netstream.bin
My question also sounds like "How to change programs file descriptor to write another file"