You're executing your script as a CGI script, but you don't follow the CGI protocol. You need to print out a CGI header. Look at CGI's docs for "header".
Also,
system(`mkdir /cgi-bin/NEW`);
should be
system('mkdir /cgi-bin/NEW');
or just
mkdir('/cgi-bin/NEW');
Your version executes mkdir, captures its output, then executes the output.
In reply to Re: system commands in os x apache
by ikegami
in thread system commands in os x apache
by blowupp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |