You don't want exec. Try:
There are many threads on using exec() on this site, most of which will say to use backticks or qx().$return_string = `/path/to/second/2.cgi`; #notice _back_ticks #You can check $return_string for error print $return_string;
In reply to Re: exec a CGI from within another CGI
by swiftone
in thread exec a CGI from within another CGI
by belize
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |