|
Last change
on this file since 7393 was 7393, checked in by Daniela Dorner, 20 years ago |
|
*** empty log message ***
|
-
Property svn:executable
set to
*
|
|
File size:
1.6 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 08/2005 <mailto:dorner@astro.uni-wuerzburg.de>
|
|---|
| 21 | #
|
|---|
| 22 | # Copyright: MAGIC Software Development, 2000-2004
|
|---|
| 23 | #
|
|---|
| 24 | #
|
|---|
| 25 | # ========================================================================
|
|---|
| 26 | #
|
|---|
| 27 | #
|
|---|
| 28 |
|
|---|
| 29 | user=`whoami`
|
|---|
| 30 | source /home/$user/Mars/datacenter/scripts/sourcefile
|
|---|
| 31 |
|
|---|
| 32 | files=`ls $lockpath/*`
|
|---|
| 33 |
|
|---|
| 34 | for file in ${files[@]}
|
|---|
| 35 | do
|
|---|
| 36 | filedate=`date +%H -r $file`
|
|---|
| 37 | now=`date +%H`
|
|---|
| 38 | compdate=`expr $now - 13 + 24`
|
|---|
| 39 | # echo "date: "$filedate
|
|---|
| 40 | # echo "now: " $now
|
|---|
| 41 | # echo "comp: " $compdate
|
|---|
| 42 | twelf=12
|
|---|
| 43 | if [ $compdate -gt $twelf ]
|
|---|
| 44 | then
|
|---|
| 45 | filedate2=`expr $filedate + 24`
|
|---|
| 46 | else
|
|---|
| 47 | filedate2=$filedate
|
|---|
| 48 | fi
|
|---|
| 49 | if [ $compdate -gt $filedate2 ] || [ $filedate2 -gt $now -a $now -gt $twelf ]
|
|---|
| 50 | then
|
|---|
| 51 | rm -v $file
|
|---|
| 52 | echo "date: "$filedate
|
|---|
| 53 | echo "date2: "$filedate2
|
|---|
| 54 | echo "now: "$now
|
|---|
| 55 | echo "comp: "$compdate
|
|---|
| 56 | date
|
|---|
| 57 | fi
|
|---|
| 58 | done
|
|---|
| 59 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.