Dear Monks, First of, I am not native English speaker so I am sure I will write some things incorrectly. I am finishing my Master Project Thesis and my supervisor told me it would be nice to present a web server so a user could run my program. My program is written in perl and works perfectly. Then I have written a web page from the scratch with a form which is submitted to my CGI which is supposed to call my program. The CGI is able to read the form and check it and call my program. The only problem is that my program lasts after 5 minutes of its call. More or less the results it shows are like the ones in the NCBI PSI-BLAST server but I have no clue on how to do this... I guess my CGI should redirect the user to an internal (inside my server) results page which would be written by my program and this web page should be refreshed until I have my results... Until now, I have the following in my code to exec my program from the CGI:
my $pid = fork(); if (not defined $pid) { die "\nCannot fork!: $!\n"; } elsif ($pid == 0) { # child # exec ($child, $parameters); } else { # parent # ??żż }
In my ??żż part something should be done to auto-refresh the results from the child. Could you give me an insight here or where to look for ideas?... I have been lost for 2 weeks trying to find a solution here... Thank you in advance! EDITED: I checked my spelling mistakes V_v'

In reply to Problems in displaying my results by ofornes

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.