You need to put the .cgi extension--it's not assumed.
exec runs another program on your *filesystem*. So you
may also have to use the full path to manager.cgi.
exec '/full/path/to/manager.cgi'
or dienice("Could not run manager");
| [reply] [d/l] |
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 | [reply] |
This doesn't really address the question you asked, but: Is it possible that do might serve your purposes better?
The Autonomic Pilot | [reply] |
Make sure to set the $ENV{"QUERY_STRING"} as you
need it before calling the manager. This is were CGI
skripts get the data from. (or at least the CGI module.)
| [reply] |
You should be able to just use relative path to the .cgi just make sure you have the complete name 'manager.cgi'.
I found it is easier if you move your scripts that are all located in a dir together using a relative path.
exec 'manager.cgi' or dienice("Could not run manager");
| [reply] [d/l] |