Parent Directory | Revision Log
Newer versions of archive_valid_ccf_lists.sh, checkupdates, deleteccf, findlatest and last_version to have a locally installed version of perl
1 | #!/bin/bash |
2 | # |
3 | # archive_valid_ccf_lists.sh |
4 | # |
5 | # Script to archive the lists produced in the valid_ccf directory. |
6 | # |
7 | # To find out which files have to be deleted we use find -mtime +15 |
8 | # |
9 | # (c) ESA 2016 |
10 | # |
11 | # $Id: archive_valid_ccf_lists.sh,v 1.3 2016/09/19 12:10:37 ccflib Exp $ |
12 | |
13 | |
14 | |
15 | # Some initialisation |
16 | |
17 | where=`pwd` |
18 | |
19 | VALID_CCF="/home/ccflib/processing_valid_ccf" |
20 | VALID_CCF_ARCHIVE="/home/ccflib/archived_processing_valid_ccf" |
21 | |
22 | |
23 | |
24 | for file in `find $VALID_CCF -type f -name "all_ccfs*" -mtime +15 -exec ls -1 {} \;` |
25 | do |
26 | mv $file ${VALID_CCF_ARCHIVE}/ |
27 | done |
28 | |
29 | for file in `find $VALID_CCF -type f -name "xsaobslog_*" -mtime +15 -exec ls -1 {} \;` |
30 | do |
31 | mv $file ${VALID_CCF_ARCHIVE}/ |
32 | done |
33 |
ViewVC Help | |
Powered by ViewVC 1.1.27 |