HTML display timing problem under ksh script

Using a HTML page , i'm running a Unix ksh script with <a href=..>.
The script contains loop like this :
for i in

do

rsh.....
done

each rsh command is running quite long and then i would display results in HTML format but about 5mn my blank page waiting for result is running in error with timing error.

If i decrease the number of rsh loops , it works.

The question is :
how can i do to avoid the timing problem , at the time i use the <a href=..> or in the shell script ????

Thanks in advance

Christian

Prior to the for loop you could try outputing the:

Content-type: text/html
..
..
..

Straight away, then letting the rsh sessions output their HTML subsequently. See whether this works.

Thanks