under bash<br>
this script:<br>
<br>
no=0<br>
while [ $no -lt 3 ]<br>
do<br>
exec somecommnads >& somefile<br>
no=`expr $no + 1`<br>
done<br>
<br>
it won't loop. it will only execute somecommands once and jump out. Without exec, the output can't be redirected to somefile.<br>
<br>
many thanks in advance
this script:<br>
<br>
no=0<br>
while [ $no -lt 3 ]<br>
do<br>
exec somecommnads >& somefile<br>
no=`expr $no + 1`<br>
done<br>
<br>
it won't loop. it will only execute somecommands once and jump out. Without exec, the output can't be redirected to somefile.<br>
<br>
many thanks in advance