in reply to wrapper for single cgi program

What are you trying to accomplish exactly? If you want to have one script that handles each and every web form, then there is no need to place anything in multiple cgi-bins. Just place the script in the main cgi-bin and use hidden form fields in the html. With the hidden fields, you can submit specific parameters for each form. (With such a system, you should also take the appropriate security precautions.)

By the way, I hope you are not using Matt Wright's infamous Formmail script, which should be treated as a virus.