Dear All,

I have a situation where in i have to fork processs in an perl cgi script and i m not sure how to implement the same to reduce the response time as this is a web script. Basically i m from bioinformatics back ground . So my situtaion is as follows

1 ) i will get Multiple inputs to the main cgi script and the data is stored in an array

2) foreach of the elemnt in the array

2.1 Will parse the input

2.2 use system command to fetch command

2.2.1 the data is written in multiple files

2.3 use system command to run a third party tool for each files from above step

2.4 parse each results

2.5 run a third part tool from tthe above results

2.6 parse the result

3) Show the consolidate results

What i have to do is that for each element in the array (from step 1) they should run ll'ell and the the system command in step 2.3 should also run ll'elly.

How could i implement the same?


In reply to Forking in CGI scripts by nextGenKid

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.