#!/bin/zsh #set -x setopt shwordsplit cat >/tmp/script.py <&1 | stdbuf -o0 tee >(gzip -c > logs/$objtype/$i.log.gz) & } for i in $(seq 0 30); do #echo -n "$i: start object:" start="$(get_start $i)" #echo -n $start end=$(compute_end $i) #echo " end_object: $end:" launch_backfill $i $start $end done start=$(get_start 31) #echo $start launch_backfill 31 $start wait