Note that there are some explanatory texts on larger screens.

plurals
  1. POReplay a file-based data stream
    primarykey
    data
    text
    <p>I have a live stream of data based on files in different formats. Data comes over the network and is written to files in certain subdirectories in a directory hierarchy. From there it is picked up and processed further. I would like to replay e.g. one day of this data stream for testing and simulation purposes. I could duplicate the data stream for one day to a second machine and „record“ it this way, by just letting the files pile up without processing or moving them.</p> <p>I need something simple like a Perl script which takes a base directory, looks at all contained files in subdirectories and their creation time and then copies the files at the same time of the day to a different base directory.</p> <p>Simple example: I have files <code>a/file.1</code> 2012-03-28 15:00, <code>b/file.2</code> 2012-03-28 09:00, <code>c/file.3</code> 2012-03-28 12:00. If I run the script/program on 2012-03-29 at 08:00 it should sleep until 09:00, copy <code>b/file.2</code> to <code>../target_dir/b/file.2</code>, then sleep until 12:00, copy <code>c/file.3</code> to <code>../target_dir/c/file.3</code>, then sleep until 15:00 and copy <code>a/file.1</code> to <code>../target_dir/a/file.1</code>.</p> <p><strong>Does a tool like this already exist?</strong> It seems I’m missing the right search keywords to find it.</p> <p>The environment is Linux, command line preferred. For one day it would be thousands of files with a few GB in total. The timing does not have to be ultra-precise. Second resolution would be good, minute resolution would be sufficient.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload