Linux program to take a network stream and record to a file, splitting periodically and monitoring the status of the operation