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.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

In reply to Re: Displaying Status In Continuous Real Time Mode by BrowserUk
in thread Displaying Status In Continuous Real Time Mode by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.