in reply to system commands in os x apache
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system commands in os x apache
by almut (Canon) on Mar 11, 2010 at 17:22 UTC |