I found few sample codes too ! but I have difficulty in following the code.

If you've been following some threads here, you probably have seen the classical Watching long-running processes through CGI being mentioned.  You could try to implement something along these lines, and in case you get stuck, come back here with the code you've tried and what exactly didn't work.

That would be for Unix systems. I can't comment on how to achieve the same on Windows, because I've never run a webserver on Windows for anything serious. But I suspect the system differences with respect to fork/exec and how the webserver handles its pipes to the CGI program might be large enough to require a slightly different approach... Hopefully, someone else knows more.


In reply to Re: Monitoring a long process through a web interface CGI/Perl by almut
in thread Monitoring a long process through a web interface CGI/Perl by edatawiz

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.