belize has asked for the wisdom of the Perl Monks concerning the following question:
The writing and indexing work fine. The problem comes with what is returned to the client. This is what I have:
The 2.cgi should output plain text saying what it did between the text outputted by 1.cgi. But either i only get what 2.cgi outputs, or a 500 error.print<<EOF text goes here EOF exec '/path/to/second/2.cgi' || $error($!); print<<EOF remaining text goes here EOF
The output from 2.cgi is:
2.CGI works fine on its own, and with the content-type header, displays from 1.cgi, though the text from 1.cgi will not.print "Content-type: text/plain\n\n"; print "Done-Captured $number-files total\n";
Hope this is clear.
Any ideas how to get output from both 1.cgi and 2.cgi to show?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exec a CGI from within another CGI
by Fastolfe (Vicar) on Dec 07, 2000 at 02:47 UTC | |
|
Re: exec a CGI from within another CGI
by arturo (Vicar) on Dec 07, 2000 at 02:11 UTC | |
by belize (Deacon) on Dec 07, 2000 at 03:20 UTC | |
|
Re: exec a CGI from within another CGI
by swiftone (Curate) on Dec 07, 2000 at 02:22 UTC |