Link to home
Start Free TrialLog in
Avatar of ratrace311
ratrace311

asked on

Getting (2)No such file or directory while trying to run a CGI File

I have a working CGI Script that when served in a browser generates a cookie.  As I needed to have a very similar script, I've made a copy with slight changes, and renamed the file.  

However, although I can run the original fine, when I try to run the new one, I get a blank browser screen.  System Error logs show (2)No such file or directory: exec of ... failed.

File permissions/ownerships are the same on the two files, and the filename is correct.
Avatar of Adam314
Adam314

From the error, it appears that this script is trying to execute another program, and that is what is failing.  Can you attach the file?  Do the error logs give you a line number?
Avatar of ratrace311

ASKER

Here are the files.  They normally run embedded in image tags, but seem to run ok if I call them directly.

i.e.
Works ok:
http://www.247realmedia.com/cgi-bin/nph-opt_out.cgi

Produces the error:
http://www.247realmedia.com/cgi-bin/nph-247realmedia_opt_out.cgi

both domains (realmedia.com and 247realmedia.com) are the same server, and the different cookie domains are set from the image call, when these scripts are called from a website

i.e.
http://www.247realmedia.com/EN-US/opt-out-test.html
nph-opt-out.txt
nph-247realmedia-opt-out.txt
ASKER CERTIFIED SOLUTION
Avatar of ratrace311
ratrace311

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial