aboutsummaryrefslogtreecommitdiff
path: root/testretrieve.sh
blob: ed1bbf8c2a86f5c1a9e16860ed8b3c8b1f802ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# retrieve files 1 - $2, outputting to `out'
echo "Retrieve:"
for i in $(seq 1 $2)
do
    $1 -u 1 -k a retrievefile -f $i -o out > /dev/null
    if [[ $? -ne 0 ]]
    then
        echo "Request failed!"
    fi
done