diff --git a/Dump.sh b/Dump.sh index e594b6b..1652f9c 100755 --- a/Dump.sh +++ b/Dump.sh @@ -52,14 +52,12 @@ do_record() { wait $THIS_WGET_PID ) & done - - exit 0 } while true; do if [ ! -z "$PIDS_A" ]; then kill -9 $PIDS_A 2>/dev/null; fi echo "starting group A" - do_record A & + do_record A PIDS_B="$(cat ${PIDFILE_BASE}_B 2>/dev/null)" if [ ! -z "$PIDS_B" ]; then $OVERLAP_PER_FILE @@ -72,7 +70,7 @@ while true; do if [ ! -z "$PIDS_B" ]; then kill -9 $PIDS_B 2>/dev/null; fi echo "starting group B" - do_record B & + do_record B PIDS_A="$(cat ${PIDFILE_BASE}_A 2>/dev/null)" if [ ! -z "$PIDS_A" ]; then sleep $OVERLAP_PER_FILE