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 | ccflib | 1.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 | ccflib | 1.4 | # $Id: archive_valid_ccf_lists.sh,v 1.3 2016/09/19 12:10:37 ccflib Exp $ |
12 | ccflib | 1.1 | |
13 | |||
14 | |||
15 | # Some initialisation | ||
16 | |||
17 | where=`pwd` | ||
18 | |||
19 | ccflib | 1.4 | VALID_CCF="/home/ccflib/processing_valid_ccf" |
20 | VALID_CCF_ARCHIVE="/home/ccflib/archived_processing_valid_ccf" | ||
21 | ccflib | 1.1 | |
22 | |||
23 | |||
24 | ccflib | 1.3 | for file in `find $VALID_CCF -type f -name "all_ccfs*" -mtime +15 -exec ls -1 {} \;` |
25 | ccflib | 1.1 | do |
26 | mv $file ${VALID_CCF_ARCHIVE}/ | ||
27 | done | ||
28 | |||
29 | ccflib | 1.3 | for file in `find $VALID_CCF -type f -name "xsaobslog_*" -mtime +15 -exec ls -1 {} \;` |
30 | ccflib | 1.1 | do |
31 | mv $file ${VALID_CCF_ARCHIVE}/ | ||
32 | done | ||
33 |
ViewVC Help | |
Powered by ViewVC 1.1.27 |