in reply to Re: Safely passing CGI form data to a shell command
in thread Safely passing CGI form data to a shell command

I'm curious what creating another process accomplishes? Why not just call exec() from within your own process? Could you explain? Thanks!

--
Tommy Butler, a.k.a. Tommy
  • Comment on Re^2: Safely passing CGI form data to a shell command

Replies are listed 'Best First'.
Re^3: Safely passing CGI form data to a shell command
by salva (Canon) on Apr 21, 2005 at 17:18 UTC
    fork and exec is just what qx// does (w/o the shell thing).

    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!