In general, you can't just "exec" from one CGI program to another. The second program is probably expecting all the CGI environment to be set up properly, and the first program is expected to return a CGI response to the web server. So, you probably need to restate your problem in terms of what you
really want to accomplish, because, "you can't get there from here".
-- Randal L. Schwartz, Perl hacker