blob: 22e86f52c01810156986e3b3460eaf71801b9332 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
INDEXAMAJIG=$1
INFILE=$2
GEOM=$3
make_link() {
sleep 5
ln -s $INFILE file_wait_input.h5
}
if [ -f file_wait_input.h5 ]; then
echo file_wait_input.h5 exists. Not proceeding!
exit 1
fi
if [ -f file_wait_input.lst ]; then
echo file_wait_input.lst exists. Not proceeding!
exit 1
fi
if [ -f file_wait_input.stream ]; then
echo file_wait_input.stream exists. Not proceeding!
exit 1
fi
make_link &
echo "file_wait_input.h5" > file_wait_input.lst
$INDEXAMAJIG -i file_wait_input.lst -o file_wait_input.stream -g $GEOM --wait-for-file=10
OUTVAL=$?
wait
rm -f file_wait_input.h5 file_wait_input.lst file_wait_input.stream
if [ $OUTVAL -ne 0 ]; then
exit 1;
fi
|