Print output before program end

R

Rafal Lagowski

Hi all

This is my small problem ...

I have a program which make a long long statistic (about 2 minutes)
It enough to timeout in my browser (or squid proxy of client)

I want first make a page which is checking if there exist a result of
stat maker (some PDF file)

If NO then reload, if YES then show the page with a link
This is not problem. I'm making it.

In first line of my program I make

print $query->redirect("ProgWait.pl?result=doc.pdf");

and after program is making stats. There is no more output from this
program.

The problem is that result of print is showed when ALL program is
finish, so when result PDF exist, so redirect is not have sens.

I have option to call first program ProgWait.pl?result=doc.pdf and after
make stats, but I have pass a lot of parameters

Is there any other solution to print output before program end

Thanks a lot ....

Rafal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top