gstlal-inspiral  1.9.3
 All Classes Namespaces Files Functions
gstlal_ll_inspiral_save_state
1 #!/usr/bin/env bash
2 #
3 # Copyright (C) 2015 Chad Hanna, Kipp Cannon, Cody Messick
4 #
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2 of the License, or (at your
8 # option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13 # Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 
19 
20 DESTINATION="${1}"
21 shift
22 
23 echo sleeping...
24 sleep 3600
25 
26 while true; do
27  for f in "$@"; do
28  gsiscp ${f} ${DESTINATION} || { grid-proxy-init && gsiscp ${f} ${DESTINATION}; }
29  done
30  echo sleeping...
31  sleep 3600
32 done
33 
34 #
35 # Always end on an error so that condor will restart it
36 #
37 
38 exit 1