1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # ========================================================================
|
---|
4 | #
|
---|
5 | # *
|
---|
6 | # * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
7 | # * Software. It is distributed to you in the hope that it can be a useful
|
---|
8 | # * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
---|
9 | # * It is distributed WITHOUT ANY WARRANTY.
|
---|
10 | # *
|
---|
11 | # * Permission to use, copy, modify and distribute this software and its
|
---|
12 | # * documentation for any purpose is hereby granted without fee,
|
---|
13 | # * provided that the above copyright notice appear in all copies and
|
---|
14 | # * that both that copyright notice and this permission notice appear
|
---|
15 | # * in supporting documentation. It is provided "as is" without express
|
---|
16 | # * or implied warranty.
|
---|
17 | # *
|
---|
18 | #
|
---|
19 | #
|
---|
20 | # Author(s): Daniela Dorner 09/2006 <mailto:dorner@astro.uni-wuerzburg.de>
|
---|
21 | #
|
---|
22 | # Copyright: MAGIC Software Development, 2000-2006
|
---|
23 | #
|
---|
24 | #
|
---|
25 | # ========================================================================
|
---|
26 | #
|
---|
27 | # This script checks the transfer:
|
---|
28 | # 1) the transfer of subsystem files from LP
|
---|
29 | # 2) the transfer of rawfiles from PIC
|
---|
30 | #
|
---|
31 |
|
---|
32 | source `dirname $0`/sourcefile
|
---|
33 | printprocesslog "INFO starting $0"
|
---|
34 |
|
---|
35 | #checking the transfer of the subsystemdata files
|
---|
36 | transferdir=/home/lapalma/transfer
|
---|
37 | dirs=`find $transferdir -type d`
|
---|
38 | for dir in $dirs
|
---|
39 | do
|
---|
40 | if [ "$dir" = "$transferdir" ]
|
---|
41 | then
|
---|
42 | continue
|
---|
43 | fi
|
---|
44 | files=`find $dir -maxdepth 1 -type f | wc -l`
|
---|
45 | if [ $files -eq 0 ]
|
---|
46 | then
|
---|
47 | continue
|
---|
48 | fi
|
---|
49 | printprocesslog "WARN $dir contains still $files files"
|
---|
50 | done
|
---|
51 |
|
---|
52 |
|
---|
53 | #checking the transfer of the rawfiles
|
---|
54 | dates=`ls /magic/datacenter/fromlapalma/RAW | grep -v Test`
|
---|
55 |
|
---|
56 | for date in ${dates[@]}
|
---|
57 | do
|
---|
58 | if ! ls /magic/datacenter/fromlapalma/RAWchk/$date/$date.finished 2>&1 >/dev/null
|
---|
59 | then
|
---|
60 | printprocesslog "WARN .finished for $date not found"
|
---|
61 | fi
|
---|
62 | done
|
---|
63 |
|
---|