Calling exec with out forking would not let you capture and postprocess the command output... actually the command output would be sent to the remote browser!
In reply to Re^3: Safely passing CGI form data to a shell command
by salva
in thread Safely passing CGI form data to a shell command
by Tommy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |