echo 's%Backup%Backup; AllowDuplicateJobs = no;CancelLowerLevelDuplicates=no;CancelQueuedDuplicates=no; CancelRunningDuplicates=no%' >> $outf
sed -f $outf $tmp/1 >> $conf/bacula-dir.conf
-for i in `seq 1 40`; do
+i=1
+while [ $i -le 40 ]; do
echo "s%CompressedTest%CancelLowerLevelDuplicatesYes-$i%" > $outf
echo 's%Backup%Backup; AllowDuplicateJobs = no; CancelLowerLevelDuplicates=yes%' >> $outf
echo 's%sleep 6%sleep 20%' >> $outf
sed -f $outf $tmp/1 >> $conf/bacula-dir.conf
+ i=`expr $i + 1`
done
when=`perl -Mscripts::functions -e "get_time(300)"`
@##########################
END_OF_DATA
-for i in `seq 1 30`; do
+i=1
+while [ $i -le 30 ]; do
cat <<EOF >>${cwd}/tmp/bconcmds
@# Should work
run level=Full job=CancelLowerLevelDuplicatesYes-$i yes
EOF
+i=`expr $i + 1`
done
echo "wait" >> ${cwd}/tmp/bconcmds
echo "messages" >> ${cwd}/tmp/bconcmds
-for i in `seq 1 30`; do
+i=1
+while [ $i -le 30 ]; do
cat <<EOF >>${cwd}/tmp/bconcmds
@# Should fail
run level=Incremental job=CancelLowerLevelDuplicatesYes-$i yes
EOF
+i=`expr $i + 1`
done
echo "@sleep 5" >> ${cwd}/tmp/bconcmds
-for i in `seq 1 30`; do
+i=1
+while [ $i -le 30 ]; do
cat <<EOF >>${cwd}/tmp/bconcmds
@# Should work
run level=Full job=CancelLowerLevelDuplicatesYes-$i yes
EOF
+i=`expr $i + 1`
done
echo "wait" >> ${cwd}/tmp/bconcmds