http://www.perlmonks.org?node_id=151665


in reply to Have CGI call script, display status in browser

Your question is not very clear. The preceeding comments are acurate, but I'm not sure they answer your question.

If you mean "How can a CGI program send data to another CGI program" there are a couple of ways. I think the solution you are looking for is to simply point the HTML page to the second script - this is assuming that you are trying ot run a CGI from a different server. This is probably a no-no however, simply because the original author could change that program, and your HTML page would send him/her bad data - which might actually do something.

Cheers,
Erik

Replies are listed 'Best First'.
Re: Re: Gez
by Anonymous Monk on Mar 14, 2002 at 14:53 UTC
    Sorry, I should have been more specific The perl script I am trying to start from a submit button, creates text files based on data read from a database, then saves these files to disk. Its output just prints 'RUNNING', and 'COMPLETE' to STDOUT, which in this case needs to be an HTML form so that I know the status of the perl script

      Ahhh . . . I see. Perl, in this fashion, is a server side technology. What you need is a client side technology like JavaScript (Though you can still use Perl server side). See cgi buffer flush for a more detailed discussion.

      Cheers,
      Erik