in reply to system or exec in a web environment

exec doesn't do a fork. You have to explicity call fork() yourself and then exec in the child. You should also close STDIN/OUT/ERR in the child before execing.

Dave.

  • Comment on Re: system or exec in a web environment