#!/bin/bash

for num_proc in {20..30}; do

delay=10
delay_max=300
while [ $delay -lt $delay_max ]; do

service sssd stop && rm -f /var/lib/sss/mc/* /var/lib/sss/db/* && service sssd start
#python initgroups.py bneron 3044 9 $num_proc $delay
python initgroups.py user1 50001 29 $num_proc $delay
if [ $? -ne 0 ]; then
exit 1
fi

let "delay += 5"

done
done
echo done
