source: branches/MarsISDCBranchBasedOn17887/datacenter/scripts/checktransfer@ 18292

Last change on this file since 18292 was 9169, checked in by snruegam, 16 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.7 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-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
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#checking if there are temporary zipfiles
53files=`find $datapath/rawfiles/20[0-1][0-9]/ -name ".*\.raw\.??????"`
54
55for file in ${files[@]}
56do
57 printprocesslog "WARN found temporary zipfile $file"
58done
Note: See TracBrowser for help on using the repository browser.