<HTML> I am using perl to run a .cgi script that will enable a user to update a move list via FTP. (yes this question is somewhat related to the "big mess CGI/frames" subject, but involves a different problem altogether)

If one proceeds to:

http://www.rit.edu/~ee697b/cgi-bin/filedif.html

and presses the button it will try to run a script that is called "change.cgi". This will run for a long time, seem to do nothing - and then time out.

What change.cgi does is constantly goes to a file called coord.dat, reads from it, and makes another .html out of it called coord.html. This is because it doesn't quite know when a user will update the file via FTP.

The source for the change.cgi can be read at:

http://www.rit.edu/~ee697b/cgi-bin/change.txt

This leads to my question - is there any way in perl to run a .cgi script from a web page in the background? (i.e. click the button once, and the script runs, without the browser thinking it has to reach a destination, and thus wait until it has achieved that destination ?)

Can a process be spawned off, and then expire on its own, later, without the web browser timing out? (I've had this happen before, but only if I run the script directly from my shell account)

OR - is there a way to script a command that temporarily stops the browser *until* a new move pops up (file size is larger, move list array appended by one line, etc...)

Also - this might be asking the same thing as above... is there an equivalent to a "system()" function, as in C, where you can run another .exe or process compiled by another language, process, etc external to perl?

Thanks for your time.

</HTML>


In reply to semi-finite background process by Konda

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.