spool_file spools a file in configurable batches and intervals. works with flat files or .gziped files