#! /bin/sh -x for i in `cat /tmp/affected`; do { copr-repo --batched /var/lib/copr/public_html/results/$i & echo PID $! wait; } 2>&1 | tee -a /var/lib/copr/public_html/stats/recreate-repo-`date -I`.log done