You want to display a real-time, scrolling graph of time/percentage complete in a browser window?
Your cgi script ise getting the numbers to use, directly from the process being monitered, that you are running from within that cgi script using IPC::Open2?
Since the process is providing the numbers itself, you only get one set number of (pairs of) values, 10, where each value represents 10% completion and the associated value is the time (in seconds?) to complete that percentile?
So your graph would eventually end up looking something like:
80 +
|
70 + |-----
S | |
60 + |-----|
E | |----|
50 + |
C | |----|
40 + ____|
O | |----|
30 + |
N | |----|
20 + |
D | |----|
10 + |----|
S |____|
0-+----+----+----+----+----+----+----+----+----+----+
0 10 20 30 40 50 60 70 80 90 100
P e r c e n t a g e C o m p l e t e
You could certainly draw the graph as an image using GD or similar; and use timed refreshes or "server push" (however that works), to update the browser. Or you could probably draw a pretty good representation using an html table and just periodically refresh that.
Will you find a module pre-written to do this for you? Probably not.
If there is one, will anyone who knows about it, know what you are looking for from your rather poor description in this thread? Probably not.
Had I not been involved in your previous, anonymous thread--which I only know was you because I recognise those fairly unique progress messages: +::010::5 +::020::7 that you posted in another reply--I certainly wouldn't have a clue what you are after from your question.
If you're going to be a regular, get an account. If there is already pertinent information in a previous post, refer to it. These things will make it much easier, and therefore much more likely, for people to help you.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|