curl -X PUT -d@test.xml http://ppp.amazonaws.com/p[1-2000].xml &
pidlist="$pidlist $!"
curl -X PUT -d@a.xml http://qqq.amazonaws.com/q[1-2000].xml &
pidlist="$pidlist $!"
curl -X PUT -d@b.xml http://rrr.amazonaws.com/r[1-2000].xml &
pidlist="$pidlist $!"
curl -X PUT -d@c.xml http://sss.amazonaws.com/s[1-2000].xml &
pidlist="$pidlist $!"
for job in $pidlist do
echo $job
wait $job || let "FAIL+=1"
done
if [ "$FAIL" == "0" ]; then
echo "SUCCESS!"
else
echo "FAIL! ($FAIL)"
fi
No comments:
Post a Comment