Perl Monk, Perl Meditation | |
PerlMonks |
exec a CGI from within another CGIby belize (Deacon) |
on Dec 07, 2000 at 02:08 UTC ( [id://45346]=perlquestion: print w/replies, xml ) | Need Help?? |
belize has asked for the wisdom of the Perl Monks concerning the following question:
I have a CGI that writes to a text file. After writing to the text file, I want another CGI to run and index that text file along with all the others in the directory. 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. 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. Hope this is clear. Any ideas how to get output from both 1.cgi and 2.cgi to show?
Back to
Seekers of Perl Wisdom
|
|