Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The task is to take the MA data for each MA for each day of a month and aggregate it into a single file per MA per month. Initially don't bother with compression. Eventually this will run as a daily cronjob,thus it must be robust and if run from a cronjob only produce any stdout if there is a problem. 

Hints

Write in perl. Start from ~cottrell/bin/template.pl or ~cottrell/sumdir-regexp.pl. Use the perl opendir function to get the directory listing. Use /bin/gunzip or bin/zcat to uncompress (unzip) the files. Use stat if you need file size etc. Look at File::Copy for copying files.

...