Hi,

I want to execute a cgi script from a perl script that first updates the cgi
script. The basic code I'm using to open and update the file is:


print "Content-type: text/html\n\n";
open RESULT, "template.cgi";
while (<RESULT>) {
    s/Insert content here/$output/g;
    print;
}
close RESULT;

The cgi file calls the header and footer for the application. When I run it
like this I get a web page with cgi code in the header and footer and the
correct content. How do I execute the cgi file after updating it? I'm on the
right track?

Thanks

Shane

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to