source: trunk/MagicSoft/Mars/datacenter/scripts/checktransfer@ 8114

Last change on this file since 8114 was 8114, checked in by Daniela Dorner, 18 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.8 KB
Line 
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
32source `dirname $0`/sourcefile
33printprocesslog "INFO starting $0"
34
35#checking the transfer of the subsystemdata files
36transferdir=/home/lapalma/transfer
37dirs=`find $transferdir -type d`
38for dir in $dirs
39do
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"
50done
51
52
53#checking the transfer of the rawfiles
54dates=`ls /magic/datacenter/fromlapalma/RAW | grep -v Test`
55
56for date in ${dates[@]}
57do
58 if ! ls /magic/datacenter/fromlapalma/RAWchk/$date/$date.finished >/dev/null 2>&1
59 then
60 printprocesslog "WARN .finished for $date not found"
61 fi
62done
63
Note: See TracBrowser for help on using the repository browser.