If the CGI script is in your cgi-bin directory, you must use the following syntax to call it correctly (assume abc.com is the domain name you are using):
http://www.abc.com/cgi-abc/FileName.cgi
Also, if you use "/cgi-bin/" in the URL (as opposed to "cgi-bin/") to call your CGI script, you will not be accessing your cgi-bin, but the general cgi-bin for the webserver.