View Single Post
Old 04-04-2010, 05:01 PM   PM User | #1
jlfmssm
New to the CF scene

 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jlfmssm is an unknown quantity at this point
Smile system() in CGI doesn't work

I use apache to make web server, in /cgi-bin/ I made a test.cgi.
there are some code like the following:

system ("chown apache.apache /cgi-bin/enm");
system ("chmod 777 /cgi-bin/enm");
system ("chmod 777 /cgi-bin/enm/*");
system "sh /var/www/cgi-bin/enm/run.bat";

I already give permission to /cgi-bin, but it seems system does't do anything.
However if I run sh /var/www/cgi-bin/enm/run.bat in command line, it works.
I am working on linux.

Could anyone help me.

jlf
jlfmssm is offline   Reply With Quote