| 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-2007 | 
|---|
| 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 | #checking if there are temporary zipfiles | 
|---|
| 53 | files=`find $datapath/rawfiles/20[0-1][0-9]/ -name ".*\.raw\.??????"` | 
|---|
| 54 |  | 
|---|
| 55 | for file in ${files[@]} | 
|---|
| 56 | do | 
|---|
| 57 | printprocesslog "WARN found temporary zipfile $file" | 
|---|
| 58 | done | 
|---|