in reply to running exec script.cgi from a cgi script

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");