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
|